getUserNotifications
FunctiongetUserNotifications(requestOptions: IUserRequestOptions): Promise<INotificationResult>
Get notifications for a user.
import { getUserNotifications } from '@esri/arcgis-rest-portal';
getUserNotifications({ authentication })
.then(results) // results.notifications.length) => 3
Parameters
Parameter | Type | Notes |
---|---|---|
request | IUserRequestOptions | options to pass through in the request |
Returns
Promise<INotificationResult>
A Promise that will resolve with the user's notifications