mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
29 lines
529 B
Python
29 lines
529 B
Python
|
from mastodon import Mastodon
|
||
|
|
||
|
# app = Mastodon.create_app('toot', to_file='app_creds.txt')
|
||
|
# print app
|
||
|
|
||
|
# mastodon = Mastodon(client_id='app_creds.txt')
|
||
|
# mastodon.log_in('ivan@habunek.com', 'K2oEeDHdMEvCbAnEJjeB18sv', to_file='user_creds.txt')
|
||
|
|
||
|
|
||
|
# # Create actual instance
|
||
|
# mastodon = Mastodon(
|
||
|
# client_id='app_creds.txt',
|
||
|
# access_token='user_creds.txt'
|
||
|
# )
|
||
|
|
||
|
# mastodon.toot('Testing')
|
||
|
|
||
|
|
||
|
# import ConfigParser
|
||
|
|
||
|
# config = ConfigParser.ConfigParser()
|
||
|
# config.read('auth.ini')
|
||
|
|
||
|
# print config.get('Auth', 'foo2')
|
||
|
|
||
|
|
||
|
|
||
|
|