MediaWiki API help

Affiliate recommendation

Explore linguistics, Hebrew, and Bible study books 📚

Interested in how languages work? Discover books on linguistics, phonetics, grammar, etymology, semantics, Hebrew language studies, Biblical Hebrew, modern Hebrew, Bible study resources, commentaries, concordances, and the science of human language.

As an Amazon Associate I earn from qualifying purchases.

This is an auto-generated MediaWiki Action API documentation page.

action=pollsubmitvote

(main | pollsubmitvote)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: AJAX Poll
  • License: GFDL-1.2

AJAXPoll API module

Specific parameters:
Other general parameters are available.
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

A "csrf" token retrieved from action=query&meta=tokens

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