Toot-Mastodon-CLI-TUI-clien.../toot.py

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