API:Tokens (action)/ru

Tokens can be obtained using action=tokens. These tokens can then be used in other API requests.

Возможные ошибки
In addition to the usual errors, other errors may be returned in the following format:

Possible errors include:
 * Unrecognized value for parameter 'type'
 * Action 'xxx' is not allowed for the current user

Failing to urlencode the token can result in an invalid token error.

Important Note
You need to send the cookie obtained in the login phase when you do call the api with the "tokens" action; otherwise you get the cryptic "readapidenied" error.