MediaWiki API hulp
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wsps
(main | wsps)
- Voor deze module zijn leesrechten nodig.
- Voor deze module zijn schrijfrechten nodig.
- This module only accepts POST requests.
- Bron: PageSync
- Licentie: GPL v2
PageSync API module
Parameters:
- what
Action to take; valid values are 'add', 'remove', 'gettags' and 'updatetags'
- Deze parameter is vereist.
- pageId
Page ID of the page to add or remove
- Deze parameter is vereist.
- Type: integer
- user
Username making the changes
- Deze parameter is vereist.
- tags
When updating tags, this should be a comma seperated string holding all the tags
- token
A "csrf" token retrieved from action=query&meta=tokens
- Deze parameter is vereist.
Voorbeelden:
- Add page with page ID 123
- api.php?action=pagesync&what=add&pageId=666 [in de sandbox openen]
- Remove page with page ID 123
- api.php?action=pagesync&what=remove&pageId=666 [in de sandbox openen]
- Get tags for page ID 123. Status ok when correct and tags hold the current tags.
- api.php?action=pagesync&what=gettags&pageId=666 [in de sandbox openen]
- Update tags for page ID 123. Will simply override all existing tags.
- api.php?action=pagesync&what=updatetags&pageId=666 [in de sandbox openen]