Get notifications / Mentions
Please use this (https://blkem.com/mobile_api/get_notifications) API for accessing the endpoint of fetching user notifications & mentions
Get parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | E.g. de25cc16eb00960f076... |
type | Notification type (notifs/mentions) | E.g. `notifs` |
page_size | Total records limit for each request | Recommended: 20 |
offset | Last record offset ID | This is only needed when loading records of the pagination system. |
Success response
{
"code": 200,
"message": "Fetched successfully",
"data": [
{
"id": 518237,
"notifier_id": 6098,
"recipient_id": 6098,
"status": "1",
"subject": "custom",
"title": "Your free trial has ended. Please upgrade",
"entry_id": 1,
"json": "[]",
"time": "2 hours ago",
"username": "abidars",
"avatar": "https:\/\/blkem.s3.amazonaws.com\/upload\/avatars\/2022\/03\/2vruyeyNZHVS6vwydREa_28_f241b152c39e7d987562c8327472dd67_thumbnail_512x512.jpeg",
"verified": "1",
"assigned_badge": "brown",
"u_id": 6098,
"name": "Abid Raza",
"url": "http:\/\/localhost\/blkem-v6\/abidars",
"type": "notification"
},
{
"id": 114481,
"notifier_id": 3732,
"recipient_id": 6098,
"status": "1",
"subject": "visit",
"title": "Visited your profile",
"entry_id": 3732,
"json": "[]",
"time": "12 months ago",
"username": "Netathatsme",
"avatar": "https:\/\/blkem.s3.amazonaws.com\/upload\/default\/avatar.png",
"verified": "1",
"assigned_badge": "brown",
"u_id": 3732,
"name": "Cynethia Collins",
"url": "http:\/\/localhost\/blkem-v6\/Netathatsme",
"type": "notification",
"user_id": 3732
},
{...}
]
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 404,
"message": "No data found",
"data": []
}
{
"code": 400,
"message": "The type of notification is missing or invalid. Please check your details",
"data": []
}