aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gists.rst
blob: 3b2915f87f250f961057a912acaeb809a133d532 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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