We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a03e9 commit 15fd929Copy full SHA for 15fd929
README.rst
@@ -16,16 +16,21 @@ Usage
16
17
::
18
19
- import github3
+ from github3.api import Github
20
+ from github3.handlers.user import AuthUser
21
+ from github3.handlers.gists import Gist
22
- gh = github3.basic_auth('username', 'password')
23
+ gh = Github()
24
+ gh.session.auth = ('kennethreitz', 'password')
25
- gh.get_repo('kennethreitz', 'python-github3')
26
+ me = AuthUser(gh)
27
+ for repo in me.get_repos():
28
+ print repo
29
- me = gh.get_me()
-
- me.create_gist(u'Description',
- files={'file1.txt': {'content': u'Content of first file'}})
30
+ gists = Gist(gh)
31
+ gists.create_gist(
32
+ u'Description',
33
+ files={'file1.txt': {'content': u'Content of first file'}})
34
35
36
0 commit comments