Get notifications / Mentions

请用 (https://yedoll.com/mobile_api/get_notifications) API for accessing the endpoint of fetching user notifications & mentions


Get 参数

参数 描述
session_id Access token ID 例如: de25cc16eb00960f076...
type Notification type (notifs/mentions) 例如: `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.

成功响应

{
        "code": 200,
        "message": "Fetched successfully",
        "data": [
            {
            "id": 36,
            "notifier_id": 73,
            "recipient_id": 7,
            "status": "0",
            "subject": "subscribe",
            "entry_id": 73,
            "json": "[]",
            "time": "19 hours ago",
            "username": "thomas_dugelman",
            "avatar": "http://colibri.loc/upload/default/avatar.png",
            "verified": "1",
            "name": "Thomas Dugelman",
            "url": "http://colibri.loc/@thomas_dugelman"
            },
            {...}
        ]
    }
    

错误响应

{
        "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": []
    }