aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex McGivern <[email protected]>2017-04-26 13:13:17 +0100
committerAlex McGivern <[email protected]>2017-04-26 13:13:17 +0100
commit00998d6d468f88fd89e4e925f3eac14cd2a0a3d6 (patch)
tree6c2d9e9de1f4ac2b1e125060d4802a315482fb01 /docs
parent1deca1c5f6907912a13e4df92b567421f5618d33 (diff)
parent9766171729a18dd4ee28f09f2dfc150354dfcdc8 (diff)
downloadmastodon.py-00998d6d468f88fd89e4e925f3eac14cd2a0a3d6.tar.gz
Merge branch 'master' of https://github.com/halcy/Mastodon.py
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)