get_all_resources (version 0.2)
Returns all resources defined in a Planyo site along with additional information and photos.
detail_level int optional
Sum of one or the following integers (ORed value): 1=resource name, 2=resource settings (quantity, site_id, confirmation_type, category), 4=resource properties (resource-specific properties), 8=resource photos. Default value is 1 (name only).
page int optional
Zero-based page number. The default is 0. Max. number of results per page is 100.
version float optional
you can optionally specify the version of the API that you're using. Use the value of latest or simply skip this parameter to use the latest API version. The latest version is: 0.2
language string optional
by specifying a 2-letter (ISO 639-1) language code (all capital letters e.g. EN, DE, FR, ES, IT) you can change the language of the text values returned
api_key string required
your API key -
Click here to get your key
resource_count int
Total number of resources. Note: this can be greater than the number of resources returned because of the max. page size limit set to 100.
max_page int
Max. page number (page numbers are zero-based).
resources array
Array of resources. Each item is a named array with one or more of the following keys (depending on the specified detail_level): name, quantity, site_id, confirmation_type, unit_price, currency, category, properties (array of all resource-specific properties -- name => value -- defined in the admin panel in: Site settings / Custom property manager), photos (array of photos containing following keys: id, path, title)
Click here for a PHP sample which you can embed into your webpage