diff options
| author | 2012-04-03 23:18:52 +0200 | |
|---|---|---|
| committer | 2012-04-03 23:18:52 +0200 | |
| commit | 37e871617148bfde801a499699bbf2205125d830 (patch) | |
| tree | c38c9fded3b56554d2a22fe1f7712dab9be6dca9 /docs/gists.rst | |
| parent | Fix naming (diff) | |
| download | python-github3-37e871617148bfde801a499699bbf2205125d830.tar.xz python-github3-37e871617148bfde801a499699bbf2205125d830.zip | |
Gists services doc
Diffstat (limited to 'docs/gists.rst')
| -rw-r--r-- | docs/gists.rst | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/gists.rst b/docs/gists.rst new file mode 100644 index 0000000..3b2915f --- /dev/null +++ b/docs/gists.rst @@ -0,0 +1,37 @@ +.. _Gists service: + +Gists services +=============== + +**Fast sample**:: + + from pygithub3 import Github + + auth = dict(login='octocat', password='pass') + gh = Github(**auth) + + octocat_gists = gh.gists.list() + the_first_gist = gh.gists.get(1) + + the_first_gist_comments = gh.gists.comments.list(1) + +Gist +----- + +.. autoclass:: pygithub3.services.gists.Gist + :members: + + .. attribute:: comments + + :ref:`Comments service` + +.. _Comments service: + +Comments +---------- + +.. autoclass:: pygithub3.services.gists.Comments + :members: + +.. _github gists doc: http://developer.github.com/v3/gists +.. _github comments doc: http://developer.github.com/v3/gists/comments |
