Get the authenticated user info
This can only be done by the logged in userinfo.
Header Parameters
- Authorization required
The Oauth2 token
- 200
- 401
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- login string
this user name
- id string
this user id
- url string
return personal information interface in json format
- name string
User's nisckname
- company string
User's company
- blog string
User's personal website or blog
- location string
User's location
- email string
User's email
- bio string
User's brief introduction
- avatar_url string
User's avatar
- html_url string
User's personal homepage
- public_repos Integer
User's public repostory count
- total_private_repos Integer
User's private repostory count
- owned_private_repos Integer
User's self private repostory count
- created_at string
User's register time
- updated_at string
User's update personal information time
{
"login": "mrpuatomgit",
"id": "63db126c0566d2f7d2c9498c",
"url": "https://api.atomgit.com/users/mrpuatomgit",
"name": "这就是我的昵称",
"company": "atom",
"blog": "https://youboke.com",
"location": "beijing",
"email": "2214882769@qq.com",
"bio": "hello i am putianyang",
"avatar_url": "https://img-host/uploads/user/1656318880150_5104.png",
"html_url": "https://atomgit.com/mrpuatomgit",
"public_repos": 3,
"total_private_repos": 2,
"owned_private_repos": 1,
"created_at": "2023-02-02 09:31:24",
"updated_at": "2023-02-15 18:20:50"
}
- Schema
- Example (from schema)
Schema
- login string
this user name
- id string
this user id
- url string
return personal information interface in json format
- name string
User's nisckname
- company string
User's company
- blog string
User's personal website or blog
- location string
User's location
- email string
User's email
- bio string
User's brief introduction
- avatar_url string
User's avatar
- html_url string
User's personal homepage
- public_repos Integer
User's public repostory count
- total_private_repos Integer
User's private repostory count
- owned_private_repos Integer
User's self private repostory count
- created_at string
User's register time
- updated_at string
User's update personal information time
<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>
<email>2214882769@qq.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>
<public_repos>3</public_repos>
<total_private_repos>2</total_private_repos>
<owned_private_repos>1</owned_private_repos>
<created_at>2023-02-02 09:31:24</created_at>
<updated_at>2023-02-15 18:20:50</updated_at>
</root>
Invalid token, please provide correct token
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
error
- error_description string
error description
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
error
- error_description string
error description
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>