The “get notification count” API is used to retrieve the number of unread notifications for a particular user. The API takes in one required parameter: “user_id”, which is the ID of the user whose notification count needs to be retrieved.
The response to the API call is a JSON object with a single key-value pair. The key is “count” and the value is an integer indicating the number of unread notifications for the specified user.
Endpoint #
The Voomerr Get Notification Count endpoint is GET https://admin.voomerr.com/api/get_notification_count.php
Request Parameters #
Parameter Name | Type | Required | Description |
---|---|---|---|
user_id | Integer | Yes | The ID of the user for whom to retrieve the notification count. |
Response Parameters #
Parameter Name | Type | Description |
---|---|---|
count | Integer | The number of unread notifications for the specified user. |
Request Example #
json
{
"user_id": 1234
}
Response Example #
json
{
"count": 7
}