Помоћ око Медијавикијевог API-ја

Ово је аутоматски генерисана документација за Медијавики API

Документација и примери: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-

action=echomarkread

(main | echomarkread)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Извор: Echo
  • Лиценца: MIT

Mark notifications as read for the current user.

Специфични параметри:
Other general parameters are available.
list

A list of notification IDs to mark as read.

Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
unreadlist

A list of notification IDs to mark as unread.

Separate values with | or alternative.
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.

Values (separate with | or alternative): alert, message
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Примери:
Mark notification 8 as read
api.php?action=echomarkread&list=8 [open in sandbox]
Означи сва обавештења као прочитана
api.php?action=echomarkread&all=true [open in sandbox]
Mark notification 1 as unread
api.php?action=echomarkread&unreadlist=1 [open in sandbox]