aboutsummaryrefslogblamecommitdiff
blob: 2d07f0bd133c498eb5aa4c07682b9fb667d8c539 (plain) (tree)




















                                                                
from mastodon import Mastodon

'''
https://mastodonpy.readthedocs.io/en/stable/index.html

Mastodon.create_app(
    'pytooterapp',
    api_base_url = 'https://mastodon.social',
    to_file = 'pytooter_clientcred.secret'
)
'''

# mastodon = Mastodon(client_id = 'pytooter_clientcred.secret',)
# mastodon.log_in(
#     '[email protected]',
#     'incrediblygoodpassword',
#     to_file = 'pytooter_usercred.secret'
# )

mastodon = Mastodon(access_token = 'pytooter_usercred.secret')
mastodon.toot('Tooting from Python using #mastodonpy !')
Powered by cgit v1.2.3 (git 2.41.0)