Skip to content

Commit 551f29c

Browse files
committed
Mimetype example in doc
1 parent 37e8716 commit 551f29c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/services.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ attributes or all of them.
5353
.. autoclass:: pygithub3.services.base.MimeTypeMixin
5454
:members:
5555

56+
**Fast example**::
57+
58+
from pygithub3 import Github
59+
60+
gh = Github()
61+
62+
gh.gists.comments.set_html()
63+
comment = gh.gists.comments.list(1).all()[0]
64+
print comment.body, comment.body_text, comment.body_html
65+
5666
List of services
5767
-------------------
5868

0 commit comments

Comments
 (0)