Get Notifications

The “get notification” API endpoint allows a user to retrieve a list of their notifications. Notifications can include alerts about new messages, updates on orders, and other important information related to the user’s activity on the platform.
To use this API, the user must provide their user ID as a parameter. The API will then return a list of their notifications, including information such as the notification ID, the type of notification, the time the notification was received, and any additional details or links associated with the notification.

Endpoint #

The Voomerr Get Notifications endpoint is GET https://admin.voomerr.com/api/get_notifications.php

Request Parameters #

Parameter Required Description
user_id Yes The ID of the user to retrieve notifications for.

Response Parameters #

Parameter Description
id The ID of the notification.
message The notification message.
sender_id The ID of the user who sent the notification.
sender_name The name of the user who sent the notification.
created_at The date and time the notification was created in Y-m-d H:i:s format.
is_read Indicates whether the notification has been read (1) or not (0).

Request Example #

javascript
GET https://admin.voomerr.com/api/get_notifications.php?user_id=12345

Response Example #

json
{
"success": true,
"notifications": [
{
"id": "1",
"message": "You have a new follower.",
"sender_id": "67890",
"sender_name": "John Doe",
"created_at": "2022-02-27 10:30:00",
"is_read": "0"
},
{
"id": "2",
"message": "Your order has been shipped.",
"sender_id": "54321",
"sender_name": "Jane Smith",
"created_at": "2022-02-26 15:20:00",
"is_read": "1"
}
]
}

Powered by BetterDocs