Gets the count of unread notifications for a user Returns (The count of unread notifications)
Overview of GetUnreadNotificationCountForUserAsync goes here.
| Name | Description |
|---|---|
| folder | The folder to search for notifications |
| user | The user to get the unread notification count for. If null, uses the current user |
| beforeStartDate | Filter notifications before this start date |
| beforeEndDate | Filter notifications before this end date |
| afterStartDate | Filter notifications after this start date |
| afterEndDate | Filter notifications after this end date |
Example in C#
// Returns: Int32
var item = await client.GetUnreadNotificationCountForUserAsync(FolderInfo folder, UserInfo user, DateTime beforeStartDate, DateTime beforeEndDate, DateTime afterStartDate, DateTime afterEndDate);
Example in CURL
curl -X GET \
'https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/userreadnotifications/count?userId=USER.KEY' \
-H 'Authorization: Bearer TOKEN_GOES_HERE'