aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/index.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/docs/index.rst b/docs/index.rst
index adc2a89..80687de 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -11,24 +11,24 @@ Mastodon.py
11 ''' 11 '''
12 Mastodon.create_app( 12 Mastodon.create_app(
13 'pytooterapp', 13 'pytooterapp',
14 to_file = 'pytooter_clientcred.txt' 14 to_file = 'pytooter_clientcred.secret'
15 ) 15 )
16 ''' 16 '''
17 17
18 # Log in - either every time, or use persisted 18 # Log in - either every time, or use persisted
19 ''' 19 '''
20 mastodon = Mastodon(client_id = 'pytooter_clientcred.txt') 20 mastodon = Mastodon(client_id = 'pytooter_clientcred.secret')
21 mastodon.log_in( 21 mastodon.log_in(
22 '[email protected]', 22 '[email protected]',
23 'incrediblygoodpassword', 23 'incrediblygoodpassword',
24 to_file = 'pytooter_usercred.txt' 24 to_file = 'pytooter_usercred.secret'
25 ) 25 )
26 ''' 26 '''
27 27
28 # Create actual instance 28 # Create actual instance
29 mastodon = Mastodon( 29 mastodon = Mastodon(
30 client_id = 'pytooter_clientcred.txt', 30 client_id = 'pytooter_clientcred.secret',
31 access_token = 'pytooter_usercred.txt' 31 access_token = 'pytooter_usercred.secret'
32 ) 32 )
33 mastodon.toot('Tooting from python!') 33 mastodon.toot('Tooting from python!')
34 34
@@ -329,7 +329,8 @@ Writing data: Accounts
329These functions allow you to interact with other accounts: To (un)follow and 329These functions allow you to interact with other accounts: To (un)follow and
330(un)block. 330(un)block.
331 331
332.. automethod:: Mastodon.account_follow 332.. automethod:: Mastodon.account_follow
333.. automethod:: Mastodon.follows
333.. automethod:: Mastodon.account_unfollow 334.. automethod:: Mastodon.account_unfollow
334.. automethod:: Mastodon.account_block 335.. automethod:: Mastodon.account_block
335.. automethod:: Mastodon.account_unblock 336.. automethod:: Mastodon.account_unblock
Powered by cgit v1.2.3 (git 2.41.0)