Announcements. List of notifications

Parameters

HTTP method Access rights URL Parameters Note
GET announcements https://api.admitad.com/announcements/
  • limit**
  • offset**
  • language***
Returns the list of notifications*.
GET announcements https://api.admitad.com/announcements/{id}
  • language***
Returns the notification, where id is the notification ID*.
  • * Returns the result in the JSON format.
  • ** Sets skipping and the number of records returned. For example limit=5&offset=2.
  • *** Language of notifications (ru by default). E.g. language=ru.

Example of use

Example of a request with utility ``curl``:

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/announcements/

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/announcements/20/

Example of the response from the API server in the JSON format:

{
"results": [
{
"message": "Cooperation request confirmed",
"id": 264,
"advcampaign": {
"id": 8,
"name": "AdvCamp 3"
},
"event": "request_accepted"
},
{
"message": "Cooperation request confirmed",
"id": 263,
"advcampaign": {
"id": 6,
"name": "AdvCamp 1"
},
"event": "request_accepted"
}
],
"_meta": {
"count": 50,
"limit": 2,
"offset":0
}
}

Description of API server response fields

Name Description
id Notification ID
message Notification message text
event Notification event
advcampaign Affiliate program