toot/toot/async_api/accounts.py

16 wiersze
402 B
Python

"""
Accounts
https://docs.joinmastodon.org/methods/accounts/
"""
from toot import Context
from toot.ahttp import Response, request
async def verify_credentials(ctx: Context) -> Response:
"""
Test to make sure that the user token works.
https://docs.joinmastodon.org/methods/accounts/#verify_credentials
"""
return await request(ctx, "GET", "/api/v1/accounts/verify_credentials")