Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=flowthread
- Этот модуль требует прав на чтение.
- Этот модуль требует прав на запись.
- Источник: FlowThread
- Лицензия: BSD-2-Clause
- type
Type of action to take. (Must be one of list, like, dislike, report, delete, recover, erase, markchecked or post)
- Это обязательный параметр.
- pageid
ID of the page to comment on (type = post), or to list comment (type = list). Required when type is post and list.
- Type: integer
- postid
ID of the post to act on (type = like, dislike, report, delete, recover, erase, markchecked), or to reply (type = post). Required in the former case.
- content
Content of the comment to post. Required when type is post.
- wikitext
Specify whether the content should be regarded as wikitext.
- Type: boolean (details)
- offset
Offset to start listing posts.
- Type: integer
- limit
Number of posts to list. Can be set to 'max' to fetch all posts of a page.
- Type: integer
- List all comments posted on the page with ID of 1.
- api.php?action=flowthread&pageid=1&type=list&limit=max [открыть в песочнице]
- Post a comment on the page with ID of 1.
- api.php?action=flowthread&pageid=1&type=post&content=Some+Text [открыть в песочнице]
- Reply a comment on the page with ID of 1.
- api.php?action=flowthread&pageid=1&postid=AValidPostID&type=post&content=Some+Text [открыть в песочнице]
- Like a comment.
- api.php?action=flowthread&postid=AValidPostID&type=like [открыть в песочнице]
- Delete a comment.
- api.php?action=flowthread&postid=AValidPostID&type=delete [открыть в песочнице]