diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
commit | 5215c2242dd7b87418a7c10781c2b10b35d86f46 (patch) | |
tree | 9164c3963424cc149ddd7e61561470f27f5b817a /README.rst | |
parent | 0e00fced99976d74e972a3c9ca5b762697840a33 (diff) | |
download | mastodon.py-5215c2242dd7b87418a7c10781c2b10b35d86f46.tar.gz |
Fix some things in streaming and admin API for 3.3.0 support
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1,7 +1,7 @@ | |||
1 | Mastodon.py | 1 | Mastodon.py |
2 | =========== | 2 | =========== |
3 | Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API. | 3 | Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API. |
4 | Feature complete for public API as of Mastodon version 3.0.1 and easy to get started with: | 4 | Feature complete for public API as of Mastodon version 3.0.1 (pypi) / 3.3.0 (current master) and easy to get started with: |
5 | 5 | ||
6 | .. code-block:: python | 6 | .. code-block:: python |
7 | 7 | ||
@@ -21,10 +21,7 @@ Feature complete for public API as of Mastodon version 3.0.1 and easy to get sta | |||
21 | 21 | ||
22 | from mastodon import Mastodon | 22 | from mastodon import Mastodon |
23 | 23 | ||
24 | mastodon = Mastodon( | 24 | mastodon = Mastodon(client_id = 'pytooter_clientcred.secret') |
25 | client_id = 'pytooter_clientcred.secret', | ||
26 | api_base_url = 'https://mastodon.social' | ||
27 | ) | ||
28 | mastodon.log_in( | 25 | mastodon.log_in( |
29 | '[email protected]', | 26 | '[email protected]', |
30 | 'incrediblygoodpassword', | 27 | 'incrediblygoodpassword', |
@@ -35,10 +32,7 @@ Feature complete for public API as of Mastodon version 3.0.1 and easy to get sta | |||
35 | 32 | ||
36 | from mastodon import Mastodon | 33 | from mastodon import Mastodon |
37 | 34 | ||
38 | mastodon = Mastodon( | 35 | mastodon = Mastodon(access_token = 'pytooter_usercred.secret') |
39 | access_token = 'pytooter_usercred.secret', | ||
40 | api_base_url = 'https://mastodon.social' | ||
41 | ) | ||
42 | mastodon.toot('Tooting from python using #mastodonpy !') | 36 | mastodon.toot('Tooting from python using #mastodonpy !') |
43 | 37 | ||
44 | You can install Mastodon.py via pypi: | 38 | You can install Mastodon.py via pypi: |