diff options
author | 2012-04-03 23:45:28 +0200 | |
---|---|---|
committer | 2012-04-03 23:45:28 +0200 | |
commit | 551f29c9c54b89cef63af3d25cf4bd20e6ebb65c (patch) | |
tree | 6d9f47bbb8111c8d4cc06693ba10c74bf3d7b9ef /docs | |
parent | Gists services doc (diff) | |
download | python-github3-551f29c9c54b89cef63af3d25cf4bd20e6ebb65c.tar.xz python-github3-551f29c9c54b89cef63af3d25cf4bd20e6ebb65c.zip |
Mimetype example in doc
Diffstat (limited to 'docs')
-rw-r--r-- | docs/services.rst | 10 |
1 files changed, 10 insertions, 0 deletions
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 ------------------- |