미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=pollsubmitvote

(main | pollsubmitvote)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 write 권한을 요구합니다.
  • 이 모듈은 POST 요청만을 허용합니다.
  • 출처: AJAX Poll
  • 라이선스: GFDL-1.2

AJAXPoll API 모듈

변수:
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

이 변수는 필수입니다.
answer

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

이 변수는 필수입니다.
유형: 정수
token

"csrf" 토큰은 action=query&meta=tokens에서 가져옵니다

이 변수는 필수입니다.
예시:
Submit the third (3) answer to the poll that has the ID 832A5FA2C2583A5732B90CEFF658FE25
api.php?action=pollsubmitvote&poll=832A5FA2C2583A5732B90CEFF658FE25&answer=3 [연습장에서 열기]