1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-09-22 04:25:55 -04:00
toot/toot.py

29 lines
529 B
Python
Raw Normal View History

2017-04-12 10:42:04 -04:00
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')