pages
Terence Eden 2022-11-13 09:30:31 +00:00
rodzic 3a91fca61d
commit bea475cccf
2 zmienionych plików z 4 dodań i 1 usunięć

1
.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1 @@
config.py

Wyświetl plik

@ -1,9 +1,11 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
from mastodon import Mastodon from mastodon import Mastodon
import config
# Set up access # Set up access
instance = "https://mastodon.example" instance = "https://mastodon.example"
mastodon = Mastodon( api_base_url=instance, access_token="abc123" ) mastodon = Mastodon( api_base_url=config.instance, access_token=config.access_token )
# Get user's info # Get user's info
me = mastodon.me() me = mastodon.me()