xREL.v3

API: oauth2/token method - Wiki

Sprache wählen
Board RSS API Status Hilfe Kontakt
Optionen

Artikel: API: oauth2/token method

API: oauth2/token method

This is the endpoint for the last step of the OAuth 2.0 authentication flow.

URL
https://api.xrel.to/v2/oauth2/token

HTTP Method(s)
POST

Parameters
NameInformation
grant_typeauthorization_code for User authentication, client_credentials for Application authentication, refresh_token for refreshing an access token.
client_idYour Consumer Key.
client_secretYour Consumer Secret.
codeWhen performing the authorization_code grant, you must specify the code provided from oauth2/auth.
redirect_uriWhen performing the authorization_code grant, you must use the same redirect_uri like provided for oauth2/auth.
refresh_tokenNeeded when using the refresh_token grant.
scopeNeeded to access protected methods. Most users must leave this blank. Multiple scopes are separated by space.

Please note that this method always returns json to conform to the standard. The token is a JSON Web Token, which you can verify and decode for more information (e.g. scopes & lifetime). Please also read the OAuth 2.0 Guide.

Zuletzt aktualisiert: 8. Mai 2016, 19:00 Uhr.

Optionen

Artikel bewerten
0/50/50/50/50/50/50/50/50/50/5
Bisher stimmte niemand ab