diff options
author | Lorenz Diener <[email protected]> | 2017-04-26 13:31:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-04-26 13:31:06 +0200 |
commit | 9766171729a18dd4ee28f09f2dfc150354dfcdc8 (patch) | |
tree | d6b1c7d0346ee5734df183bbdb478e3c27b6aea0 /docs | |
parent | 0ba01f3da99ac41708699ad85d527d98c555fc77 (diff) | |
download | mastodon.py-9766171729a18dd4ee28f09f2dfc150354dfcdc8.tar.gz |
Changed example to use .secret instead of .txt
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/index.rst b/docs/index.rst index 166b51e..87e6fb5 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 | ||