עזרה של MediaWiki API

זהו דף תיעוד של API שנוצר באופן אוטומטי.

תיעוד ודוגמאות: https://www.mediawiki.org/wiki/API

action=tokens

(main | tokens)
  • יחידה זו אינה מומלצת לשימוש.
  • יחידה זו דורשת הרשאות קריאה.

Get tokens for data-modifying actions.

This module is deprecated in favor of action=query&meta=tokens.

פרמטר:
type

Types of token to request.

ערכים (מופרדים באמצעות "|"): block, delete, edit, email, import, move, options, patrol, protect, unblock, watch
ברירת מחדל: edit
דוגמאות:
Retrieve an edit token (the default).
api.php?action=tokens
Retrieve an email token and a move token.
api.php?action=tokens&type=email|move