API:Checktoken/ja

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page API:Checktoken and the translation is 20% complete.

Other languages:
English • ‎dansk • ‎français • ‎polski • ‎ไทย • ‎日本語

Checks the validity of a token from the tokens module.

パラメーター

  • type: Type of token being tested. 取りうる値: csrf, patrol, rollback, userrights, watch. On MediaWiki servers, CentralAuth also adds deleteglobalaccount and setglobalaccountstatus.
  • token: Token to test.
  • maxtokenage: Maximum allowed age of the token, in seconds.

Check a CSRF token.





action=checktoken

(main | checktoken)

Check the validity of a token from action=query&meta=tokens.

Parameters:
type

Type of token being tested.

This parameter is required.
One of the following values: createaccount, csrf, deleteglobalaccount, login, patrol, rollback, setglobalaccountstatus, userrights, watch
token

Token to test.

This parameter is required.
maxtokenage

Maximum allowed age of the token, in seconds.

Type: integer