Open main menu

Contents

meta=notificationsEdit

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

ParametersEdit

  • 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

ExampleEdit

action=echomarkreadEdit

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

ParametersEdit

  • 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


ExampleEdit

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