Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 752 Bytes

File metadata and controls

47 lines (33 loc) · 752 Bytes
.. module:: github2.users

Users

.. autoclass:: User(type)

.. autoclass:: Users(type)

Examples

Searching

>>> results = github.users.search("foo")

Getting User Information

>>> user = github.users.show("ask")
>>> user.name
"Ask Solem"

Getting User Network

>>> github.users.followers("ask")
['greut', 'howiworkdaily', 'emanchado', 'webiest']
>>> github.users.following("ask")
['sverrejoh',
'greut',
'jezdez',
'bradleywright',
'ericflo',
'howiworkdaily',
'emanchado',
'traviscline',
'russell']

Following Network

>>> github.users.follow("jezdez")
>>> github.users.unfollow("jezdez")