aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst15
1 files changed, 9 insertions, 6 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 531c2db..03f4b29 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -10,8 +10,9 @@ Mastodon.py
10 # Register app - only once! 10 # Register app - only once!
11 ''' 11 '''
12 Mastodon.create_app( 12 Mastodon.create_app(
13 'pytooterapp', 13 'pytooterapp',
14 to_file = 'pytooter_clientcred.secret' 14 api_base_url = 'https://mastodon.social',
15 to_file = 'pytooter_clientcred.secret'
15 ) 16 )
16 ''' 17 '''
17 18
@@ -20,17 +21,19 @@ Mastodon.py
20 mastodon = Mastodon(client_id = 'pytooter_clientcred.secret') 21 mastodon = Mastodon(client_id = 'pytooter_clientcred.secret')
21 mastodon.log_in( 22 mastodon.log_in(
22 '[email protected]', 23 '[email protected]',
23 'incrediblygoodpassword', 24 'incrediblygoodpassword',
25 api_base_url = 'https://mastodon.social',
24 to_file = 'pytooter_usercred.secret' 26 to_file = 'pytooter_usercred.secret'
25 ) 27 )
26 ''' 28 '''
27 29
28 # Create actual instance 30 # Create actual API instance
29 mastodon = Mastodon( 31 mastodon = Mastodon(
30 client_id = 'pytooter_clientcred.secret', 32 client_id = 'pytooter_clientcred.secret',
31 access_token = 'pytooter_usercred.secret' 33 access_token = 'pytooter_usercred.secret',
34 api_base_url = 'https://mastodon.social'
32 ) 35 )
33 mastodon.toot('Tooting from python!') 36 mastodon.toot('Tooting from python using #mastodonpy !')
34 37
35`Mastodon`_ is an ostatus based twitter-like federated social 38`Mastodon`_ is an ostatus based twitter-like federated social
36network node. It has an API that allows you to interact with its 39network node. It has an API that allows you to interact with its
Powered by cgit v1.2.3 (git 2.41.0)