Ayuda de la API de MediaWiki

Esta es una página de documentación autogenerada de la API de MediaWiki.

Documentación y ejemplos: https://www.mediawiki.org/wiki/API

action=notifications

(main | notifications)
  • Este módulo requiere permisos de lectura.
  • Fuente: Reverb
  • Licencia: GPL-2.0-or-later

Retrieve notifications for the current user.

Parámetros:
do

The end point action to perform such as getNotificationsForUser.

Este parámetro es obligatorio.
page

The page number starting point of notifications to retrieve.

Este parámetro es obligatorio.
Tipo: entero
Predeterminado: 0
itemsPerPage

The number of notifications to return per page retrieved.

Este parámetro es obligatorio.
Tipo: entero
Predeterminado: 50
type

The type of notifications to return in the response. Accepts a comma delimited list of types.

read

Return only read notifications in the response.

Tipo: entero
unread

Return only unread notifications in the response.

Tipo: entero
notificationId

The notification ID passed to dismissNotification to be dismissed taken from the original response from getNotificationsForUser.

dismissedAt

The Unix Epoch formatted timestamp of when the notification was read. To mark a notification as unread set this to 0.

Tipo: entero
Ejemplos:
Get all notifications for the logged in user limited by the current page number and number of items per page.
api.php?action=notifications&do=getNotificationsForUser&page=0&itemsPerPage=50 [abrir en la zona de pruebas]
Make a POST request with the notification ID and the Unix Epoch formatted timestamp of the dismissed time. Set dismissedAt to zero to mark a notification as unread. Logged in users can only dismiss their own notifications.
api.php?action=notifications&do=dismissNotification&notificationId=1&dismissedAt=1562006555 [abrir en la zona de pruebas]
Make a POST request to mark all notifications for the logged in user as read.
api.php?action=notifications&do=dismissAllNotifications [abrir en la zona de pruebas]