Notifications/API

From MediaWiki.org
Jump to navigation Jump to search

meta=notifications[edit]

You can use the API (meta=notifications) to get a list of notifications.

Parameters[edit]

  • notprop: One of "list", "index", or "count"
  • notformat: One of "model" or "special"
  • notlimit: Limit of notifications to return
  • notcontinue: Continuation parameter
  • notindex: Get an index of notification ids
  • notuselang: If getting html output, what language to render it in

Example[edit]

action=echomarkread[edit]

You can use the API (action=echomarkread) to mark notifications as read.

Parameters[edit]

  • list: Pipe separated list of notification ids to mark as read
  • all: If set, mark all notifications as read
  • token: Edit token
  • uselang: If you want HTML output back, use this to control the output language


Example[edit]

Note: In this example, all parameters are passed in a GET request just for the sake of simplicity. However, action=echomarkread requires POST requests.