MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=csVote

(main | csVote)
  • This module requires read rights.
  • This module only accepts POST requests.
  • Source: CommentStreams
  • License: MIT

Vote (up, down, or neutral) on a comment.

Parameters:
pageid

page ID of the page which holds the comment to be voted on

Type: integer
title

title of the page which holds the comment to be voted on

vote

vote (1, -1, or 0).

This parameter is required.
Type: integer
token

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

This parameter is required.
Examples:
vote on comment with page ID 3
api.php?action=csVote&pageid=3&vote=1 [open in sandbox]
vote on comment with page title CommentStreams:3
api.php?action=csVote&title=CommentStreams:3&vote=-1 [open in sandbox]