Get bookmarks
请用 (https://yedoll.com/mobile_api/get_bookmarks) API for accessing get user bookmarks endpoint
Get 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
page_size | Total post limit for each request | Recommended: 20 |
offset | Last post offset ID | This is only needed when loading posts of the pagination system. |
成功响应
{
"code": 200,
"message": "Bookmarks fetched successfully",
"data":[
{"id": 36, "user_id": 7, "text": "retw", "type": "text", "replys_count": "1",…},
{"id": 38, "user_id": 7, "text": "ert", "type": "text",…},
{"id": 39, "user_id": 7, "text": "ert", "type": "text",…},
{"id": 40, "user_id": 7, "text": "erter", "type": "text",…}
]
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 204,
"message": "No data found",
"data": []
}
Add bookmark / Unbookmark
请用 (https://yedoll.com/mobile_api/add_bookmark) API for accessing bookmark/unbookmark post endpoint
Post 参数
参数 | 值 | 描述 |
---|---|---|
session_id | Access token ID | 例如: de25cc16eb00960f076... |
post_id | Bookmarked/Unbookmarked post int ID | 例如: 4567 |
成功响应
{
"code": 200,
"message": "",
"data": {
"bookmark": false
}
}
错误响应
{
"code": 401,
"data": [],
"message": "Unauthorized Access"
}
{
"code": 400,
"message": "Post id is missing or invalid",
"data": []
}