diff options
author | clarkzjw <[email protected]> | 2023-02-22 16:56:21 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-23 12:07:32 -0800 |
commit | d469f16670df2d1748a6377d1bebe9b730dc25be (patch) | |
tree | c8b84c1a2f97a5c0170f29e431c54e4b99f8e716 /toot.py | |
parent | 6af01f18c2bb4f641d85d4b3caa00b4e2e842a77 (diff) | |
download | swarm2fediverse-d469f16670df2d1748a6377d1bebe9b730dc25be.tar.gz |
fix oauth login flow
Diffstat (limited to 'toot.py')
-rw-r--r-- | toot.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/toot.py b/toot.py deleted file mode 100644 index 659d232..0000000 --- a/toot.py +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | from mastodon import Mastodon | ||
2 | |||
3 | from config import TOOT_API_BASE_URL, TOOT_CLIENT_SECRET, TOOT_ACCESS_TOKEN, TOOT_CLIENT_ID, MASTODON_CLIENT_ID_FILE | ||
4 | |||
5 | ''' | ||
6 | https://mastodonpy.readthedocs.io/en/stable/index.html | ||
7 | ''' | ||
8 | |||
9 | mastodon_client = Mastodon(client_id=MASTODON_CLIENT_ID_FILE, | ||
10 | api_base_url=TOOT_API_BASE_URL) | ||
11 | |||
12 | url = mastodon_client.auth_request_url(redirect_uris="https://zjw.social/checkinbot/fedi_login_callback", scopes=['write:media', 'write:statuses']) | ||
13 | print(url) | ||
14 | |||
15 | # mastodon_client.log_in( | ||
16 | # username="[email protected]", | ||
17 | # code='2RnDpj9lMGLWuIeppl-Cghy-iwSXzlJFWU6mQaKYD9o', | ||
18 | # # redirect_uri="urn:ietf:wg:oauth:2.0:oob", | ||
19 | # scopes=['write:media', 'write:statuses'] | ||
20 | # ) | ||