Tentacat v2.2.0 Tentacat.Users View Source
Link to this section Summary
Functions
Get a single user
Get all users
Get all users since since
id
Get the authenticated user passing a client
with necessary credentials
Update the authenticated user
Link to this section Functions
Link to this function
find(client \\ %Client{}, user)
View Sourcefind(Tentacat.Client.t(), binary()) :: Tentacat.response()
Get a single user
Example
Tentacat.Users.find client, "edgurgel"
Tentacat.Users.find client, "iurifq"
More info at: http://developer.github.com/v3/users/#get-a-single-user
Link to this function
list(client \\ %Client{}, options \\ [])
View Sourcelist(Tentacat.Client.t(), any()) :: Tentacat.response()
Get all users
Example
Tentacat.Users.list
Tentacat.Users.list client
More info at: http://developer.github.com/v3/users/#get-all-users
Link to this function
list_since(client \\ %Client{}, since, options \\ [])
View Sourcelist_since(Tentacat.Client.t(), integer(), any()) :: Tentacat.response()
Get all users since since
id
Example
Tentacat.Users.list_since 348
Tentacat.Users.list_since 348, client
More info at: http://developer.github.com/v3/users/#get-all-users
Get the authenticated user passing a client
with necessary credentials
Example
Tentacat.Users.me(client)
More info at: http://developer.github.com/v3/users/#get-the-authenticated-user
Link to this function
update(client, options)
View Sourceupdate(Tentacat.Client.t(), Keyword.t()) :: Tentacat.response()
Update the authenticated user
Possible values for options
:
- [name: "name"]
- [email: "email"]
- [blog: "blog.com"]
- [company: "My Company"]
- [location: "Internet"]
- [hireable: true]
- [bio: "Hireable developer"]
Example
Tentacat.Users.update [email: "eduardo@gurgel.me", hireable: false], client
More info at: http://developer.github.com/v3/users/#update-the-authenticated-user