Refresh OAuth2 token
documentedRefresh the access token using a refresh token.
POST /v1/oauth2/tokenAuthenticationno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://myanimelist.net/v1/oauth2/token" \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
--data-urlencode 'client_id={{MYANIMELIST_CLIENT_ID}}' \
--data-urlencode 'client_secret={{MYANIMELIST_CLIENT_SECRET}}' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'code={{$code}}' \
--data-urlencode 'redirect_uri={{$redirect_uri}}' \
--data-urlencode 'code_verifier={{$code_verifier}}'