pymastodon/src/mastodon/application.py

12 lines
424 B
Python
Raw Normal View History

2024-04-30 08:42:20 +02:00
from mastodon.authorization import MastodonAuthorization
from mastodon.config import MastodonConfiguration
from mastodon.timelines import Timelines
class MastodonApplication():
def __init__(self, application_name):
self.config = MastodonConfiguration(application_name)
self.authorization = MastodonAuthorization(self.config)
self.timelines = Timelines(self.config, self.authorization)