kopia lustrzana https://codeberg.org/edent/Mastodon_Tools
Added config
rodzic
3a91fca61d
commit
bea475cccf
|
@ -0,0 +1 @@
|
|||
config.py
|
|
@ -1,9 +1,11 @@
|
|||
from datetime import datetime, timedelta
|
||||
from mastodon import Mastodon
|
||||
|
||||
import config
|
||||
|
||||
# Set up access
|
||||
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
|
||||
me = mastodon.me()
|
||||
|
|
Ładowanie…
Reference in New Issue