Ayuda de la API de MediaWiki
Esta es una página de documentación autogenerada de la API de MediaWiki.
Documentación y ejemplos: https://www.mediawiki.org/wiki/API
action=csVote
(main | csVote)
- Este módulo requiere permisos de lectura.
- Este módulo solo acepta solicitudes POST.
- Fuente: CommentStreams
- Licencia: MIT
Votar (a favor, en contra o como indiferente) un comentario.
Parámetros:
- pageid
page ID of the page which holds the comment to be voted on
- Tipo: entero
- title
title of the page which holds the comment to be voted on
- vote
votar (1, −1 o 0).
- Este parámetro es obligatorio.
- Tipo: entero
- token
A "csrf" token retrieved from action=query&meta=tokens
- Este parámetro es obligatorio.
Ejemplos:
- vote on comment with page ID 3
- api.php?action=csVote&pageid=3&vote=1 [abrir en la zona de pruebas]
- vote on comment with page title CommentStreams:3
- api.php?action=csVote&title=CommentStreams:3&vote=-1 [abrir en la zona de pruebas]