MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=pollsubmitvote

(main | pollsubmitvote)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: AJAX Poll
  • Licenza: GFDL-1.2

Modulo API AJAXPoll

Parametri:
poll

Poll ID, such as 832A5FA2C2583A5732B90CEFF658FE25; IDs are formed by hashing the input (question + answer options, i.e. the text between <poll>...</poll> tags) with MD5 hashing algorithm and converting the result to UPPERCASE with PHP's strtoupper function

This parameter is required.
answer

Numerical answer option identifier; use 0 to revoke a previously cast vote

This parameter is required.
Type: integer
token

Un token "csrf" recuperato da action=query&meta=tokens

This parameter is required.
Esempio:
Submit the third (3) answer to the poll that has the ID 832A5FA2C2583A5732B90CEFF658FE25
api.php?action=pollsubmitvote&poll=832A5FA2C2583A5732B90CEFF658FE25&answer=3 [apri in una sandbox]