Getting all timeslots for an event
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
Getting all timeslots for an event
The /events/{eventId}/timeslots API endpoint lists all timeslots for a given event.
By sending the following GET-request, you can receive the list of timeslots.
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/events/{eventId}/timeslots" |
with TOKEN being the user access token of the user in question. It is used to determine the validity of this request. And eventId is the required ID of the event you want to get the timeslots of.
Path parameters
Name | Description |
eventId | The ID of the event you want to display. |
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | JSON-encoded List<TimeSlotData> | n/a |
no timeslots attached | ‘[]’ | n/a |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |
Example return value for call with eventId=”fb904515cd874efba3c7eeb4e0d841f1″
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
[ { "id": "11c1eb7450394d2a85397e79db2f11db", "startDate": 1381384800000, "endDate": 1381420800000, "deadline": 1380578400000, "freeSeats": 10, "totalSeats": 10, "address": { "street": "Mehringdamm 32", "zip": "10961", "email": null, "city": "Berlin", "country": null, "fax": null, "phone": null, "url": null, "note": null, "displayName": "Softgarden Berlin", "postbox": null, "id": "3cb9cef7e52e47f5a513b4096e913eb0", "building": "5", "room": "Besprechungsraum", "timeZoneId": "Europe/Berlin" }, (...) ] |
Another example return value, when there aren’t yet any timeslots for eventId=fb904515cd874efba3c7eeb4e0d841f1″
1 |
[ ] |