getUserNotifications

Function

import { getUserNotifications } from '@esri/arcgis-rest-users';
// username is inferred from UserSession
getUserNotifications({ authentication })
  .then(results) // results.notifications.length) => 3

Get notifications for a user.

Parameters

Parameter Type Default Notes
requestOptions Required IUserRequestOptions

options to pass through in the request

Returns

Promise<INotificationResult> - A Promise that will resolve with the user's notifications


Function defined in packages/arcgis-rest-users/src/notification.ts:39