通过用户ID,获取指定用户的profile数据。
Request
HTTP request
GET https://www.featapi.com/api/user/profile/{id}/
Parameters
Path parameters
Parameter name | Value | Description |
---|---|---|
id | string | 用户ID |
Authorization
该请求需要授权以下scopes访问权限:
Scopes |
---|
user_profile |
For more information, see the authentication and authorization page.
Request body
无需提交请求体信息。
Response
如果请求成功,根据path参数指定的用户ID,该API返回用户 User.Profile 个人信息数据在响应体信息。
200 Returns Profile successfully
{
"data": {
"uid": 3517745432403,
"username": "石 佳",
"firstname": "佳",
"lastname": "石",
"commercial_sign": "这是commercial sign 商业标志",
"avatar": "https://10.0.10.117:8003/media/3517745432403/avatar/3517745432403.jpg",
"orig_avatar": "https://10.0.10.117:8003/media/3517745432403/avatar/3517745432403_ZMAqoHx.jpg",
"gender": 0,
"marriage": 100,
"age": 29,
"name_order": 2,
"is_online": false,
"home_domain": "3517745432403",
"crop_info": {},
"avatars": {
"path": "https://10.0.10.117:8003/media/3517745432403/avatar/3517745432403.jpg",
"sizes": {
"sm": {
"width": 32,
"height": 32,
"path": "https://10.0.10.117:8003/media/sm/3517745432403/avatar/3517745432403_32x32.JPEG"
},
"md": {
"width": 64,
"height": 64,
"path": "https://10.0.10.117:8003/media/md/3517745432403/avatar/3517745432403_64x64.JPEG"
},
"lg": {
"width": 300,
"height": 300,
"path": "https://10.0.10.117:8003/media/lg/3517745432403/avatar/3517745432403_300x300.JPEG"
}
}
}
}
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found