Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=echocreateevent
(main | echocreateevent)
- Mô đun này cần quyền đọc.
- Mô đun này cần quyền ghi.
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: Echo
- License: MIT
Manually trigger a notification to a user
Các tham số:
Other general parameters are available.
- user
User to send the notification to
- Kiểu: người dùng, bằng một giá trị bất kỳ trong tên người dùng và số người dùng (ví dụ “#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
- Kiểu: tên trang
- Cho phép trang không tồn tại.
- section
Section where notification would be delivered
- This parameter is required.
- Một trong các giá trị: alert, notice
- Default: notice
Whether to send an email as well
- Type: boolean (details)
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Ví dụ:
- Send a notification
- api.php?action=echocreateevent&header=Hi&content=From_API [open in sandbox]