title |
---|
Users | GitHub API |
Many of the resources on the users API provide a shortcut for getting
information about the currently authenticated user. If a request URL
does not include a :user
parameter than the response will be for the
logged in user (and you must pass authentication
information with your request).
GET /users/:user
<%= headers 200 %> <%= json :full_user %>
GET /user
<%= headers 200 %> <%= json :private_user %>
PATCH /user
name : Optional string
email : Optional string - Publicly visible email address.
blog : Optional string
company : Optional string
location : Optional string
hireable : Optional boolean
bio : Optional string
<%= json
:name => "monalisa octocat",
:email => "octocat@github.com",
:blog => "https://github.com/blog",
:company => "GitHub",
:location => "San Francisco",
:hireable => true,
:bio => "There once..."
%>
<%= headers 200 %> <%= json :private_user %>