Python wrapper for the Akkoma ( ) API. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spla fae3295fd8 deleted 1 month ago
akkoma Updated 1 month ago
LICENSE Add LICENSE and 2 months ago Update 2 months ago Updated 1 month ago

Python wrapper for the Akkoma ( API.

# Register your app! This only needs to be done once. Uncomment the code and substitute in your information.

from akkoma import Akkoma

client_id, client_secret = Akkoma.create_app(
    api_base_url = 'https://yourakkoma.instance'

# Then login. This can be done every time, or use persisted.

from akkoma import Akkoma

akkoma = Akkoma(client_id = "app_clientcred.txt", api_base_url = 'https://yourakkoma.instance')

grant_type = 'password'

to_file = "app_usercred.txt"

# To post, create an actual API instance.

from akkoma import Akkoma

akkoma = Akkoma(
    access_token = 'app_usercred.txt',
    api_base_url = 'https://yourakkoma.instance'
akkoma.status_post('Posting from python using !')