getNotifications()
Overview
public query function getNotifications(
required string userId
, string topic = ""
, string dateFrom = ""
, string dateTo = ""
, numeric startRow = 1
, numeric maxRows = 10
, string orderBy = ""
)
Returns the latest unread notifications for the given user id. Returns an array of structs, each struct contains id and data keys.
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| userId | string | Yes | id of the admin user whose unread notifications we wish to retrieve |
| topic | string | No (default="") | |
| dateFrom | string | No (default="") | |
| dateTo | string | No (default="") | |
| startRow | numeric | No (default=1) | |
| maxRows | numeric | No (default=10) | maximum number of notifications to retrieve |
| orderBy | string | No (default="") |