From 37e871617148bfde801a499699bbf2205125d830 Mon Sep 17 00:00:00 2001 From: David Medina Date: Tue, 3 Apr 2012 23:18:52 +0200 Subject: Gists services doc --- docs/services.rst | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/services.rst') diff --git a/docs/services.rst b/docs/services.rst index a0fd894..e686a6e 100644 --- a/docs/services.rst +++ b/docs/services.rst @@ -61,5 +61,6 @@ List of services users repos + gists .. _mimetypes: http://developer.github.com/v3/mime -- cgit v1.2.3-59-g8ed1b From 551f29c9c54b89cef63af3d25cf4bd20e6ebb65c Mon Sep 17 00:00:00 2001 From: David Medina Date: Tue, 3 Apr 2012 23:45:28 +0200 Subject: Mimetype example in doc --- docs/services.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/services.rst') diff --git a/docs/services.rst b/docs/services.rst index e686a6e..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 ------------------- -- cgit v1.2.3-59-g8ed1b