1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00:00
toot/toot.py
2017-04-12 16:43:30 +02:00

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')