MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=massmessage
(main | massmessage)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Kilde: MassMessage
- Licens: GPL-2.0-or-later
Send en besked til en liste over sider.
Specific parameters:
Other general parameters are available.
- spamlist
Side, som indeholder listen over sider, der skal leveres beskeder på.
- This parameter is required.
- subject
Beskedens emnefelt.
- This parameter is required.
- message
Beskedens indhold.
- page-message
Page to be sent along with the message body.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Eksempler:
- Send en besked til listen på Signpost Spamlist med emnet «New Signpost» og indholdteksten «Please read it»
- api.php?action=massmessage&spamlist=Signpost%20Spamlist&subject=New%20Signpost&message=Please%20read%20it&token=TOKEN [open in sandbox]
- Send a message to the list at Signpost Spamlist with the subject "New Signpost", and the message as the content of the page "Help Page".
- api.php?action=massmessage&spamlist=Signpost%20Spamlist&subject=New%20Signpost&page-message=Help_Page&token=TOKEN [open in sandbox]
- Send a message to the list at Signpost Spamlist with the subject "New Signpost", and message body of "Please read it" appended with the content from page "Help Page".
- api.php?action=massmessage&spamlist=Signpost%20Spamlist&subject=New%20Signpost&message=Please%20read%20it&page-message=Help_Page&token=TOKEN [open in sandbox]