From d469f16670df2d1748a6377d1bebe9b730dc25be Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 22 Feb 2023 16:56:21 -0800 Subject: fix oauth login flow --- toot.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 toot.py (limited to 'toot.py') diff --git a/toot.py b/toot.py deleted file mode 100644 index 659d232..0000000 --- a/toot.py +++ /dev/null @@ -1,20 +0,0 @@ -from mastodon import Mastodon - -from config import TOOT_API_BASE_URL, TOOT_CLIENT_SECRET, TOOT_ACCESS_TOKEN, TOOT_CLIENT_ID, MASTODON_CLIENT_ID_FILE - -''' -https://mastodonpy.readthedocs.io/en/stable/index.html -''' - -mastodon_client = Mastodon(client_id=MASTODON_CLIENT_ID_FILE, - api_base_url=TOOT_API_BASE_URL) - -url = mastodon_client.auth_request_url(redirect_uris="https://zjw.social/checkinbot/fedi_login_callback", scopes=['write:media', 'write:statuses']) -print(url) - -# mastodon_client.log_in( -# username="checkinbottest@jinwei.me", -# code='2RnDpj9lMGLWuIeppl-Cghy-iwSXzlJFWU6mQaKYD9o', -# # redirect_uri="urn:ietf:wg:oauth:2.0:oob", -# scopes=['write:media', 'write:statuses'] -# ) -- cgit v1.2.3