Changed example to use .secret instead of .txt

This commit is contained in:
Lorenz Diener 2017-04-26 13:31:06 +02:00
pare 0ba01f3da9
commit 9766171729

Veure arxiu

@ -11,24 +11,24 @@ Mastodon.py
'''
Mastodon.create_app(
'pytooterapp',
to_file = 'pytooter_clientcred.txt'
to_file = 'pytooter_clientcred.secret'
)
'''
# 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(
'my_login_email@example.com',
'incrediblygoodpassword',
to_file = 'pytooter_usercred.txt'
to_file = 'pytooter_usercred.secret'
)
'''
# Create actual instance
mastodon = Mastodon(
client_id = 'pytooter_clientcred.txt',
access_token = 'pytooter_usercred.txt'
client_id = 'pytooter_clientcred.secret',
access_token = 'pytooter_usercred.secret'
)
mastodon.toot('Tooting from python!')