Get notifications / Mentions
Use this endpoint (https://komico.edubrazeal.com/mobile_api/get_notifications) to fetch user notifications and mentions.
Get parameters
| Field | Value | Remarks |
|---|---|---|
| session_id | βAccess token ID | E.g. e7a4652c3231fc74761... |
| type | βNotification type (notifs/mentions) | E.g. `notifs` |
| page_size | βNumber of records per request | Recommended: 20 |
| offset | Last record offset ID | Only needed for pagination when loading more records. |
Success response
{
"code": 200,
"message": "Notifications loaded",
"data": [
{
"id": 52,
"notifier_id": 84,
"recipient_id": 12,
"status": "0",
"subject": "subscribe",
"entry_id": 84,
"json": "[]",
"time": "3 hours ago",
"username": "kevin_lee",
"avatar": "http://komico.loc/upload/default/avatar.png",
"verified": "1",
"name": "Kevin Lee",
"url": "http://komico.loc/@kevin_lee"
},
{...}
]
}
Error responses
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 404,
"message": "No data found",
"data": []
}
{
"code": 400,
"message": "Notification type missing or invalid",
"data": []
}