fediverse_pasture.runner.application
activity_for_firefish(domain, username, session)
async
Creates a ApplicationAdapterForLastActivity object for connecting to firefish. Example usage:
Source code in fediverse_pasture/runner/application/__init__.py
activity_for_mastodon(domain, username, access_token, session)
async
Creates a ApplicationAdapterForLastActivity object for connecting to mastodon. Example usage:
Source code in fediverse_pasture/runner/application/__init__.py
actor_for_application(account_uri, application_name, session)
async
Creates a ApplicationAdapterForActor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
account_uri |
str
|
The acct uri, e.g. |
required |
application_name |
str
|
The name of the application |
required |
session |
ClientSession
|
the aiohttp ClientSession |
required |