Request a notification for an event in a match.
The notification can be set for a particular match, or all matches in a competition.
POST /v1/{sport}/livestream/notify/match/{matchId}
POST /v1/{sport}/livestream/notify/competition/{competitionId}
When the event occurs a HTTP GET request is made to the URL supplied. If the URL is unavailable then the call will not be retried. The following parameters are appended to the notification URL. matchId, competitionId & event.
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
ak |
string |
The API key given to you |
event |
string |
The type of event you wish a notification for:
|
url |
url |
The url to call when the event happens. Note: This field must be URL encoded |
Optional Parameters | ||
matchId |
integer |
The unique matchId for the match |
competitionId |
integer |
The unique competitionId for the competition |
format |
string |
The format the data is to be received in. Options are
|
Do not supply a request body with this method.
On success this method returns SUCCESS.
Remove a notification request from the system
DELETE /v1/{sport}/livestream/notify/match/{matchId}
DELETE /v1/{sport}/livestream/notify/competition/{competitionId}
An event can only be deleted the same way it was set. If an event was set for a competition, you cannot delete for a matchId in that competition, the whole competition must be deleted.
Parameter Name | Value | Description |
---|---|---|
Required Parameters | ||
sport |
string |
The sport for which you are making the request |
ak |
string |
The API key given to you |
event |
string |
The type of event you wish to delete the notification for:
|
url |
url |
The url to call when the event happens. Note: This field must be URL encoded |
Optional Parameters | ||
matchId |
integer |
The unique matchId for the match |
competitionId |
integer |
The unique competitionId for the competition |
format |
string |
The format the data is to be received in. Options are
|
Do not supply a request body.
On success this method returns SUCCESS.