API - Planyo Web Services - get_event_times

Sie sind hier: Planyo » Hilfe » API » get_event_times

get_event_times (version 1)


Lists all event times of an event-type resource.


resource_id int required
ID of the event-type resource
format string optional
Format of the array returned. This can be either string (default) which will return strings representing dates or dates and times, depending on whether the resource is hour- or day-based (in the format used by the site), timestamp which will return the timestamp or array which will return an array with the keys: text, timestamp and available, where available is the number of tickets left for given event.
future_only bool optional
If you set this to true, only future events will be returned. The default is false.
expand_recurring bool optional
If you set this to true, recurring events will be expanded into single dates. Otherwise the period specification as visible in resource settings will be returned. The default is false.
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: 1
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. If your API key uses a hash key, you must also include the parameters hash_key and hash_timestamp.


event_times array
Array of all the event times. Each item is either a string formatted according to your site settings or a time stamp or an array, depending on the format parameter.
duration float
Duration of the event (in hours)


Click here for a PHP sample which you can embed into your webpage

API playground:

Click here to test this function in the API playground.