Note
See the official GitHub API v2 documentation for users.
GitHub user container.
Number of active repositories owned by the user
Current active github plan
Number of private repositories
Name of the company the user is associated with
Number of other users the user is following
The users full name
Number of users following this user
The login username
Currently used disk space
Number of active public gists owned by the user
The user id
The date this user was registered
The users e-mail address
Number of privately owned repos
Number of private gists owned by the user
Location of the user
Number of collaborators
The users blog
GitHub API user functionality.
Add a SSH key for the authenticated user.
param str key: SSH key identifier param str title: Optional title for the SSH key
Warning
Requires authentication
Follow a GitHub user.
param str other_user: GitHub user name
Warning
Requires authentication
Get list of GitHub user’s followers.
Parameters: | username (str) – GitHub user name |
---|
Get list of users a GitHub user is following.
Parameters: | username (str) – GitHub user name |
---|
Get list of SSH keys for the authenticated user. .. warning:: Requires authentication
Remove a SSH key for the authenticated user.
param int key_id: SSH key’s GitHub identifier
Warning
Requires authentication
Search for users by email address.
Parameters: | query (str) – email to search for |
---|
SSH key container.
The SSH key data
The title for the SSH key
The key id
>>> results = github.users.search("foo")
>>> user = github.users.show("ask")
>>> user.name
"Ask Solem"
>>> github.users.followers("ask")
['greut', 'howiworkdaily', 'emanchado', 'webiest']
>>> github.users.following("ask")
['sverrejoh',
'greut',
'jezdez',
'bradleywright',
'ericflo',
'howiworkdaily',
'emanchado',
'traviscline',
'russell']