Changed example to use .secret instead of .txt
This commit is contained in:
pare
0ba01f3da9
commit
9766171729
S'han modificat 1 arxius amb 5 adicions i 5 eliminacions
|
@ -11,24 +11,24 @@ Mastodon.py
|
||||||
'''
|
'''
|
||||||
Mastodon.create_app(
|
Mastodon.create_app(
|
||||||
'pytooterapp',
|
'pytooterapp',
|
||||||
to_file = 'pytooter_clientcred.txt'
|
to_file = 'pytooter_clientcred.secret'
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Log in - either every time, or use persisted
|
# Log in - either every time, or use persisted
|
||||||
'''
|
'''
|
||||||
mastodon = Mastodon(client_id = 'pytooter_clientcred.txt')
|
mastodon = Mastodon(client_id = 'pytooter_clientcred.secret')
|
||||||
mastodon.log_in(
|
mastodon.log_in(
|
||||||
'my_login_email@example.com',
|
'my_login_email@example.com',
|
||||||
'incrediblygoodpassword',
|
'incrediblygoodpassword',
|
||||||
to_file = 'pytooter_usercred.txt'
|
to_file = 'pytooter_usercred.secret'
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# Create actual instance
|
# Create actual instance
|
||||||
mastodon = Mastodon(
|
mastodon = Mastodon(
|
||||||
client_id = 'pytooter_clientcred.txt',
|
client_id = 'pytooter_clientcred.secret',
|
||||||
access_token = 'pytooter_usercred.txt'
|
access_token = 'pytooter_usercred.secret'
|
||||||
)
|
)
|
||||||
mastodon.toot('Tooting from python!')
|
mastodon.toot('Tooting from python!')
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència