API Type 2 - Get mediaclients
This request delivers all mediaclients of a certain resort.
API endpoint
mediaclients/id of resort
Request method
GET
Request headers
-
URL parameters
mediaclients
This parameter is optional. This lets you filter by mediaclient id(s). No comma at the beginning or end of this string.
mediaclients=1,2
Response content: OK
main entity
mediaclients
|
| id | int | any valid value | id of mediaclient |
| name | string | max. 255 chars | name of mediaclient |
| operation | object | operation | operation times (continuous if start and end time are the same) |
| coords | object | coords | geographical location |
operation
|
| start | string | 00:00-24:00 | start time |
| end | string | 00:00-24:00 | end time |
coords
|
| latitude | double | any valid value | latitude (WGS84) |
| longitude | double | any valid value | longitude (WGS84) |
Example
{
"mediaclients": [{
"id": 1,
"name": "Mediaclient 1",
"operation": {
"start": "12:00",
"end": "14:00"
},
"coords": {
"latitude": 47.45544,
"longitude": 9.32252
}
}, {
"id": 2,
"name": "Mediaclient 2",
"operation": {
"start": "15:00",
"end": "18:00"
}
}]
}
Response content: Error
{
"error": 1002
}
Error codes