diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 17:58:13 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 17:58:13 +0200 |
commit | 3209c468d519185836a5aed7b37911c6672272d6 (patch) | |
tree | 25fe09d5ca9dfa54c9662321ff747e9661a79f66 | |
parent | b08c05e6de786b5fc0dc3189e73b6192e6e198b6 (diff) | |
download | mastodon.py-3209c468d519185836a5aed7b37911c6672272d6.tar.gz |
Update docs with access token only constructor
-rw-r--r-- | README.rst | 3 | ||||
-rw-r--r-- | docs/index.rst | 1 |
2 files changed, 1 insertions, 3 deletions
@@ -28,14 +28,13 @@ Mastodon.py | |||
28 | 28 | ||
29 | # Create actual API instance | 29 | # Create actual API instance |
30 | mastodon = Mastodon( | 30 | mastodon = Mastodon( |
31 | client_id = 'pytooter_clientcred.secret', | ||
32 | access_token = 'pytooter_usercred.secret', | 31 | access_token = 'pytooter_usercred.secret', |
33 | api_base_url = 'https://mastodon.social' | 32 | api_base_url = 'https://mastodon.social' |
34 | ) | 33 | ) |
35 | mastodon.toot('Tooting from python using #mastodonpy !') | 34 | mastodon.toot('Tooting from python using #mastodonpy !') |
36 | 35 | ||
37 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. | 36 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. |
38 | Feature complete for public API as of Mastodon version 2.2.0 and easy to get started with. | 37 | Feature complete for public API as of Mastodon version 2.4.0 and easy to get started with. |
39 | 38 | ||
40 | You can install Mastodon.py via pypi: | 39 | You can install Mastodon.py via pypi: |
41 | 40 | ||
diff --git a/docs/index.rst b/docs/index.rst index fc8c003..eaedd78 100644 --- a/docs/index.rst +++ b/docs/index.rst | |||
@@ -31,7 +31,6 @@ Mastodon.py | |||
31 | 31 | ||
32 | # Create actual API instance | 32 | # Create actual API instance |
33 | mastodon = Mastodon( | 33 | mastodon = Mastodon( |
34 | client_id = 'pytooter_clientcred.secret', | ||
35 | access_token = 'pytooter_usercred.secret', | 34 | access_token = 'pytooter_usercred.secret', |
36 | api_base_url = 'https://mastodon.social' | 35 | api_base_url = 'https://mastodon.social' |
37 | ) | 36 | ) |