搜索用户
请使用此 (https://mariago.site/mobile_api/search_people) API 访问用户搜索端点
GET参数
字段 | 值 | 说明 |
---|---|---|
query | 搜索关键词 | 例如: John Smith |
offset | 最后帖子偏移ID | 仅在加载分页系统的帖子时需要。 |
session_id (可选) | 访问令牌ID | 例如: de25cc16eb00960f076... |
page_size | 每次请求的帖子总数限制 | 推荐: 20 |
成功响应
{
"code": 200,
"message": "找到结果",
"data":[
{
"id": 78,
"about": "",
"followers": 0,
"posts": 0,
"avatar": "http://colibri.loc/upload/default/avatar.png",
"last_active": "2020年9月29日 上午11:09",
"username": "@mansurTLs",
"fname": "名字",
"lname": "姓氏",
"email": "jovogals@gmail.com",
"verified": "0",
"name": "名字 姓氏",
"url": "http://colibri.loc/@mansurTLs",
"is_user": false,
"is_following": false
}
]
}
错误响应
{
"code": 204,
"message": "未找到数据",
"data": []
}
{
"code": 400,
"message": "搜索词无效或缺失",
"data": []
}