获取通知/提及

请使用此 (https://mariago.site/mobile_api/get_notifications) API访问获取用户通知和提及的端点


GET参数

字段 说明
session_id 访问令牌ID 例如: de25cc16eb00960f076...
type 通知类型(notifs/mentions) 例如: `notifs`
page_size 每次请求的记录总数限制 推荐: 20
offset 最后记录偏移ID 仅在加载分页系统的记录时需要。

成功响应

{
        "code": 200,
        "message": "获取成功",
        "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": "未授权访问"
    }

    {
        "code": 404,
        "message": "未找到数据",
        "data": []
    }

    {
        "code": 400,
        "message": "通知类型缺失或无效。请检查您的详细信息",
        "data": []
    }