Python wrapper for Miskkey API
Go to file
spla e4456a889c Fixed typo 2022-10-07 13:04:50 +02:00
endpoints Actualizar 'endpoints/misskey_endpoints.md' 2022-10-07 12:59:59 +02:00
misskey Fixed typo 2022-10-07 13:04:50 +02:00
LICENSE Initial commit 2022-10-02 20:19:32 +02:00
README.md Actualizar 'README.md' 2022-10-06 19:04:53 +02:00

README.md

MisskeyAPI

Python wrapper for Miskkey API (WIP)

Sample usage:

from misskey.misskeyapi import MisskeyAPI

misskey = MisskeyAPI("https://your.misskey.instance")  

app_secret = misskey.app_create(
    app_name,
    description,
    permission,
    callbackUrl
    )  

response = misskey.auth_session_generate(app_secret)

if response.ok:

    token = response.json()['token']
    url = response.json()['url']
    input(f'open this url in your browser: {url} and accept it. Then press enter')

else:

    print(response)  

response = misskey.auth_session_userkey(app_secret, token)

if response.ok:

    token = response.json()['accessToken']

else:

    print(response.text) 

Store or write down in a safe place this last obtained token to further usage with any of the API endpoints that require it (param i(token)).

See endpoints table