APG|SGA
infosnowAPI Type 1API Type 2Divers

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

EntityTypeValuesDescription
mediaclients[]arraymediaclientslist of mediaclient objects

mediaclients

EntityTypeValuesDescription
idintany valid valueid of mediaclient
namestringmax. 255 charsname of mediaclient
operationobjectoperationoperation times
(continuous if start and end time are the same)
coordsobjectcoordsgeographical location

operation

EntityTypeValuesDescription
startstring00:00-24:00start time
endstring00:00-24:00end time

coords

EntityTypeValuesDescription
latitudedoubleany valid valuelatitude (WGS84)
longitudedoubleany valid valuelongitude (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

CodeDescription
1002Access denied