开放能力 用户信息 公开信息
# 公开信息
更新时间:2024-07-23 11:06:59
# 文档简介
获取用户公开信息的接口文档
# GetUserInfo
scope: user_info 需要用户授权
描述:获取用户的快手公开资料,包括头像、昵称、性别和地区
Domain : https://open.kuaishou.com
Method : GET
URL : /openapi/user_info
Param :
Name Type Must Description app_id string yes 应用唯一标识 access_token string yes 接口访问凭证 Success Response :
{ "result": 1, "user_info": { "name":"xxxx", "sex":"M", "fan":12, "follow":17, "head":"http://xxxx.png", "bigHead":"http://yyyyy.png", "city":"河北省石家庄市" } }
- result : 错误码。1 表示成功。
- name : 用户昵称。
- sex : 性别。"M:男性,"F":女性,其他:未知。
- head : 头像地址。
- bigHead : 大头像地址(可能为空)。
- city : 用户地区名称。
- fan : 粉丝数。
- follow : 关注数。
Error Response:
{ "result": 1, "error_msg": "xxxxxxx" }
- result : 错误码。非1 表示失败。
- error_msg : 错误信息。
上一篇:《快手登录》
下一篇:《手机号》
仍有疑问? 前往社区提问