获取用户个人信息
获取用户个人信息
Header Parameters
- Authorization required
Oauth2 token或者私人token(需以Bearer加空格开头)
Responses
- 200
- 401
操作成功
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- login string
用户名
- id string
用户id
- url string
根据获取用户名获取用户信息的接口路径
- name string
昵称
- company string
公司
- blog string
博客
- location string
地址
- phone string
手机号
- hide_email int
是否隐藏邮箱,1-隐藏/0-显示
- email string
邮箱
- bio string
简介
- avatar_url string
头像
- html_url string
主页地址
- followers Integer
粉丝数量
- following Integer
关注数量
- total_repos Integer
总仓库数量
- created_at string
注册时间
- updated_at
更新时间
{
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"url": "https://api.atomgit.com/users/mrpuatomgit",
"name": "这就是我的昵称",
"company": "atom",
"blog": "https://youboke.com",
"location": "beijing",
"phone": "手机号",
"hide_email": "example@atomgit.com",
"email": "example@atomgit.com",
"bio": "hello i am putianyang",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"html_url": "https://atomgit.com/mrpuatomgit",
"followers": 6,
"following": 5,
"total_repos": 3,
"created_at": "2023-02-02 09:31:24",
"updated_at": "2023-02-02 09:31:24"
}
- Schema
- Example (from schema)
Schema
- login string
用户名
- id string
用户id
- url string
根据获取用户名获取用户信息的接口路径
- name string
昵称
- company string
公司
- blog string
博客
- location string
地址
- phone string
手机号
- hide_email int
是否隐藏邮箱,1-隐藏/0-显示
- email string
邮箱
- bio string
简介
- avatar_url string
头像
- html_url string
主页地址
- followers Integer
粉丝数量
- following Integer
关注数量
- total_repos Integer
总仓库数量
- created_at string
注册时间
- updated_at
更新时间
<root>
<login>mrpuatomgit</login>
<id>63db126c0566d2f7d2c9498c</id>
<url>https://api.atomgit.com/users/mrpuatomgit</url>
<name>这就是我的昵称</name>
<company>atom</company>
<blog>https://youboke.com</blog>
<location>beijing</location>
<phone>手机号</phone>
<hide_email>example@atomgit.com</hide_email>
<email>example@atomgit.com</email>
<bio>hello i am putianyang</bio>
<avatar_url>https://img-host/uploads/user/1656318880150_5104.png</avatar_url>
<html_url>https://atomgit.com/mrpuatomgit</html_url>
<followers>6</followers>
<following>5</following>
<total_repos>3</total_repos>
<created_at>2023-02-02 09:31:24</created_at>
<updated_at>2023-02-02 09:31:24</updated_at>
</root>
token不合法、请检查token是否正确
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
Loading...