Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=echocreateevent
(main | echocreateevent)
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul vyžaduje oprávnění k zápisu.
- Tento modul přijímá pouze požadavky POST.
- Zdroj: Echo
- Licence: MIT
Manually trigger a notification to a user
Parametry:
Other general parameters are available.
- user
User to send the notification to
- Typ: uživatel, uvedený jako cokoli z: uživatelské jméno a ID uživatele (např. „#12345“)
- header
Header content of the notification
- This parameter is required.
- Cannot be longer than 160 bytes.
- content
Body content of the notification
- This parameter is required.
- Cannot be longer than 5 000 bytes.
- page
Page to link to in the notification
- Typ: název stránky
- Přijímá neexistující stránky
- section
Section where notification would be delivered
- This parameter is required.
- Jedna z následujících hodnot: alert, notice
- Default: notice
Whether to send an email as well
- Type: boolean (details)
- token
Token typu „csrf“ získaný pomocí action=query&meta=tokens.
- This parameter is required.
Příklad:
- Send a notification
- api.php?action=echocreateevent&header=Hi&content=From_API [otevřít v pískovišti]