Timetables
https://api.activeintime.com/v1/timetables/[timetable_id].json
Will return information on a specific timetable for a given timetable ID.
Parameters
| Parameter | Required | Example | Description |
|---|---|---|---|
| timetable_id | Yes | 1 | The ID of a particular timetable. To get the ID you need to query a site to see which timetables have been created. |
Response
| Object | Always present | Description |
|---|---|---|
| id | Yes | The ID of the timetable. |
| name | Yes | The name of the timetable. |
| timetable_sessions | No | An Array of Timetable Session objects. |
| instructors | No | An Array of Instructors objects. |
| facilities | No | An Array of Facility objects. |
Example
{
"meta": {
"X-RateLimit-Limit": 0,
"X-RateLimit-Remaining": 0,
"status": 200,
"api_client": "",
"locale": "en-gb"
},
"response": {
"id": 121,
"name": "Jamie Test Timetable",
"instructors": [
{
"first_name": "Jenny",
"last_name": "B",
"display_name": null
},
{
"first_name": "Jenny",
"last_name": "H",
"display_name": null
},
{
"first_name": "Frankie",
"last_name": "Walker",
"display_name": null
},
{
"first_name": "Sarah ",
"last_name": "Slyne",
"display_name": null
},
{
"first_name": "Alex ",
"last_name": "Cat",
"display_name": null
}
],
"timetable_sessions": [
{
"description": "",
"foreign_key": null,
"id": 301,
"name": "Beginners Hatha Yoga",
"timetable_session_category": {
"id": 151,
"name": "Yoga"
}
},
{
"description": "",
"foreign_key": null,
"id": 311,
"name": "Intermediate Yoga",
"timetable_session_category": {
"id": 151,
"name": "Yoga"
}
},
{
"description": "",
"foreign_key": null,
"id": 321,
"name": "Pilates",
"timetable_session_category": {
"id": 161,
"name": "Pilates"
}
},
{
"description": "",
"foreign_key": null,
"id": 331,
"name": "Anusara Yoga",
"timetable_session_category": {
"id": 151,
"name": "Yoga"
}
},
{
"description": "",
"foreign_key": null,
"id": 341,
"name": "Women's Yoga",
"timetable_session_category": {
"id": 151,
"name": "Yoga"
}
}
],
"facilities": [
{
"tldc_approved": true,
"id": 124511,
"length": null,
"primary_name": "Studio",
"facility_type": {
"id": 45,
"name": "Dance Studio Hall"
},
"no_of_timetables": 2,
"facility_name_aliases": [
{
"id": 123391,
"name": "Studio",
"is_primary": true
}
]
}
]
}
}