获取关注请求
请使用此(https://mariago.site/mobile_api/follow_requests) API来访问用户关注请求列表的端点
GET参数
字段 | 值 | 说明 |
---|---|---|
offset | 最后用户偏移ID | 只有在加载分页系统的用户时才需要。 |
session_id | 访问令牌ID(可选) | 例如:de25cc16eb00960f076... |
page_size | 每个请求的用户总数限制 | 推荐:20 |
成功响应
{
"code": 200,
"message": "关注请求获取成功",
"data": [
{
"offset_id": 43,
"id": 18,
"about": "",
"posts": 1,
"avatar": "http://colibri.loc/upload/avatars/xxx/xxx/rddNMSoS6S7cEgHO49Ch_20_45...b8_thumbnail_512x512.jpg",
"last_active": "21 Jun, 21 02:06 PM",
"username": "@john_smith",
"fname": "John",
"lname": "Smith",
"email": "john_smith@gmail.com",
"verified": "0",
"name": "John Smith",
"url": "http://colibri.loc/@john_smith",
"pending_req": true
},
{...}
]
}
错误响应
{
"code": 401,
"data": [],
"message": "未授权访问"
}
{
"code": 204,
"message": "未找到数据",
"data": []
}
批准关注请求
请使用此(https://mariago.site/mobile_api/accept_follow) API来访问用户关注请求批准的端点
POST参数
字段 | 值 | 说明 |
---|---|---|
session_id | 访问令牌ID(可选) | 例如:de25cc16eb00960f076... |
req_id | 关注请求整数ID | 例如:34 |
成功响应
{
"message": "关注请求已成功批准",
"code": 200,
"data": {
"total": 0
}
}
错误响应
{
"code": 401,
"data": [],
"message": "未授权访问"
}
{
"code": 400,
"message": "关注请求ID缺失或无效",
"data": []
}
删除关注请求
请使用此(https://mariago.site/mobile_api/ignore_follow) API来访问用户关注请求删除的端点,即忽略请求
POST参数
字段 | 值 | 说明 |
---|---|---|
session_id | 访问令牌ID(可选) | 例如:de25cc16eb00960f076... |
req_id | 关注请求整数ID | 例如:34 |
成功响应
{
"message": "关注请求已成功删除",
"code": 200,
"data": {
"total": 0
}
}
错误响应
{
"code": 401,
"data": [],
"message": "未授权访问"
}
{
"code": 400,
"message": "关注请求ID缺失或无效",
"data": []
}