API:Tokens

 GET Request to obtain tokens required by data-modifying actions  

API:Tokens module provide tokens required by data-modifying actions such as logging, editing or moving a page, and watching or patrolling changes.

For each action, you need a specific type of token.

For example: if you want to login to a wiki site via the Action API, you would need a token of type “login” to proceed.

Sample code
Tokens.py

Parameter history

 * v1.27: Introduced ,