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=echomarkread
(main | echomarkread)
- 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
Mark notifications as read for the current user.
Các tham số:
Other general parameters are available.
- list
Danh sách các ID thông báo để đánh dấu là đã đọc.
- Phân tách các giá trị bằng |.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- unreadlist
A list of notification IDs to mark as unread.
- Phân tách các giá trị bằng |.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- all
If set, marks all of a user's notifications as read.
- Type: boolean (details)
- sections
A list of sections to mark as read.
- Các giá trị (phân tách bằng |): alert, message
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Các ví dụ:
- Mark notification 8 as read
- api.php?action=echomarkread&list=8 [open in sandbox]
- Đánh dấu tất cả thông báo là đã đọc
- api.php?action=echomarkread&all=true [open in sandbox]
- Mark notification 1 as unread
- api.php?action=echomarkread&unreadlist=1 [open in sandbox]