API - Planyo Web Services - get_event_times

Jesteś tutaj: Planyo » Pomoc » API » get_event_times

get_event_times

Description:

Lists all event times of an event-type resource.

Input:

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.
method string required
must be set to get_event_times
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.

Output:

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)

Sample:

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.