diff options
-rw-r--r-- | README.md | 13 | ||||
-rw-r--r-- | docs/index.rst | 3 |
2 files changed, 13 insertions, 3 deletions
@@ -1,5 +1,14 @@ | |||
1 | # Mastodon.py | 1 | # Mastodon.py |
2 | |||
3 | mastodon = Mastodon( | ||
4 | client_id = 'pytooter_clientcred.txt', | ||
5 | access_token = 'pytooter_usercred.txt' | ||
6 | ) | ||
7 | mastodon.toot('Tooting from python!') | ||
8 | |||
9 | |||
2 | Python wrapper for the Mastodon ( https://github.com/Gargron/mastodon/ ) API. | 10 | Python wrapper for the Mastodon ( https://github.com/Gargron/mastodon/ ) API. |
3 | 11 | ||
4 | Media uploads currently broken, will be fixed Soon. Documentation and usage examples also | 12 | Full documentation and usage example can be found at http://mastodonpy.readthedocs.io/en/latest/ . |
5 | incoming, but the code is heavily commented and usage frankly rather self-explanatory. | 13 | |
14 | Media uploads currently broken, will be fixed Soon. | ||
diff --git a/docs/index.rst b/docs/index.rst index 06c3678..d5e3402 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -118,7 +118,8 @@ Writing data: Media | |||
118 | ------------------- | 118 | ------------------- |
119 | This function allows you to upload media to Mastodon. Except it | 119 | This function allows you to upload media to Mastodon. Except it |
120 | doesn't, because it is currently broken. But it will. | 120 | doesn't, because it is currently broken. But it will. |
121 | .. automethod:: media_post | 121 | |
122 | .. automethod:: Mastodon.media_post | ||
122 | 123 | ||
123 | .. _Mastodon: https://github.com/Gargron/mastodon | 124 | .. _Mastodon: https://github.com/Gargron/mastodon |
124 | .. _Mastodon flagship instance: http://mastodon.social/ | 125 | .. _Mastodon flagship instance: http://mastodon.social/ |