Получить уведомление по ID
id
GET //api/notification/{id} HTTP/1.1 Host: api.client.nbcgate.tech Authorization: YOUR_API_KEY Accept: */*
OK
{ "date": "text", "isRead": true, "message": "text", "notificationCategoryID": 1, "notificationID": 1, "notificationTypeID": 1 }
Получить непрочитанные уведомления
POST //api/notification HTTP/1.1 Host: api.client.nbcgate.tech Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 45 { "id": 1, "notificationCategoryID": [ 1 ], "top": 1 }
[ { "date": "text", "isRead": true, "message": "text", "notificationCategoryID": 1, "notificationID": 1, "notificationTypeID": 1 } ]
Отметить уведомление прочитанным
PUT //api/notification HTTP/1.1 Host: api.client.nbcgate.tech Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 50 [ { "notificationCategoryID": 1, "notification_id": 1 } ]
No Content
No content