Last updated 1 year ago
Was this helpful?
Show All notifications of current login user by token
GET /api/notifications HTTP/1.1 Host: cm.test Accept: */*
{ "success": true, "message": "text", "data": "text" }
Clear all notifications of current user.
POST /api/notifications/clear HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 2 {}
{ "success": true, "message": "text", "data": [ "text" ] }
Delete Selected notifications by ID
DELETE /api/notifications/{id}/delete HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 2 {}
You can make the selected notification by id flag to be is_read=true
POST /api/notifications/{id}/read HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 2 {}
update notification token for FCM integration token
POST /api/notifications/toggle HTTP/1.1 Host: cm.test Content-Type: application/json Accept: */* Content-Length: 14 { "token": null }
{ "success": true, "message": "text", "body": [ "text" ] }