blob: 2d07f0bd133c498eb5aa4c07682b9fb667d8c539 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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 !')
|