From e4d7de6128bfa079f04fca432624b5616ffa6454 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Sun, 21 Oct 2018 07:00:09 -0400 Subject: [PATCH] new app creation now works --- feediverse.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/feediverse.py b/feediverse.py index 16b6320..266c115 100755 --- a/feediverse.py +++ b/feediverse.py @@ -86,12 +86,17 @@ def setup(config_file): else: print("Ok, I'll need a few things in order to get your access token") name = input('app name (e.g. feediverse): ') - client_id, client_secret = Mastodon.create_app(name, scopes=['read', 'write'], website='https://github.com/edsu/feediverse') + client_id, client_secret = Mastodon.create_app( + api_base_url=url, + client_name=name, + #scopes=['read', 'write'], + website='https://github.com/edsu/feediverse' + ) username = input('mastodon username (email): ') password = input('mastodon password (not stored): ') + m = Mastodon(client_id=client_id, client_secret=client_secret, api_base_url=url) access_token = m.log_in(username, password) - m = Mastodon(client_id, client_secret) feed_url = input('RSS/Atom feed URL to watch: ') config = { 'name': name,