You can use debugging tokens to test applications that use OAuth. Debugging tokens are obtained by opening in a browser with the necessary parameters. Debugging tokens, like any other tokens, can always be revoked.
To get a token manually:
When registering or editing an application, click Set URL for development in the Callback URL field.
Log in on Yandex with the user account that the application will be working on behalf of, then click the link that looks like this:
The ID is available in the (click the name of the application to open its properties).
On the page that opens, click the Confirm button to grant access to your account. You do not need to grant access if a token has already been issued for this application and it has not expired yet.
The OAuth server will redirect you to the address from the Callback URL field, appending the token data after the # symbol:
http://www.example.com/token# <new OAuth token> & =<token lifespan in seconds>=
The OAuth token with the permissions indicated during application registration.
The token lifespan in seconds.
If the token could not be issued, the OAuth server appends an error code to the address:
http://www.example.com/token# error=<error code>
Possible error codes: