aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-04 00:07:50 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-04 00:07:50 +0200
commit3e551e6801a0031f1482ad5d9f30af9df78e9471 (patch)
tree9d28cc75691279ff75f079cd4e085e77241517af /docs
parent:sparkles: Relase 0.2 :sparkles: (diff)
parentFix bug (diff)
downloadpython-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.tar.xz
python-github3-3e551e6801a0031f1482ad5d9f30af9df78e9471.zip
Gists service done
Diffstat (limited to 'docs')
-rw-r--r--docs/gists.rst37
-rw-r--r--docs/repos.rst4
-rw-r--r--docs/services.rst11
-rw-r--r--docs/users.rst4
4 files changed, 52 insertions, 4 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
diff --git a/docs/repos.rst b/docs/repos.rst
index 79e016a..c065671 100644
--- a/docs/repos.rst
+++ b/docs/repos.rst
@@ -1,6 +1,6 @@
.. _Repos service:
-Repos's services
+Repos services
===================
**Fast sample**::
@@ -50,7 +50,7 @@ You can see it better with an example: ::
Repo
-------
-.. autoclass:: pygithub3.services.repos.Repos
+.. autoclass:: pygithub3.services.repos.Repo
:members:
.. attribute:: collaborators
diff --git a/docs/services.rst b/docs/services.rst
index a0fd894..71fa690 100644
--- a/docs/services.rst
+++ b/docs/services.rst
@@ -53,6 +53,16 @@ attributes or all of them.
.. autoclass:: pygithub3.services.base.MimeTypeMixin
:members:
+**Fast example**::
+
+ from pygithub3 import Github
+
+ gh = Github()
+
+ gh.gists.comments.set_html()
+ comment = gh.gists.comments.list(1).all()[0]
+ print comment.body, comment.body_text, comment.body_html
+
List of services
-------------------
@@ -61,5 +71,6 @@ List of services
users
repos
+ gists
.. _mimetypes: http://developer.github.com/v3/mime
diff --git a/docs/users.rst b/docs/users.rst
index 5bd2e97..139d726 100644
--- a/docs/users.rst
+++ b/docs/users.rst
@@ -1,6 +1,6 @@
-.. _User service:
+.. _Users service:
-User's services
+Users services
===============
**Fast sample**::