aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst12
1 files changed, 3 insertions, 9 deletions
diff --git a/README.rst b/README.rst
index 4e442b3..bd1522a 100644
--- a/README.rst
+++ b/README.rst
@@ -1,7 +1,7 @@
1Mastodon.py 1Mastodon.py
2=========== 2===========
3Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API. 3Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
4Feature complete for public API as of Mastodon version 3.0.1 and easy to get started with: 4Feature 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
44You can install Mastodon.py via pypi: 38You can install Mastodon.py via pypi:
Powered by cgit v1.2.3 (git 2.41.0)