getUserNotifications

getUserNotifications

getUserNotifications(requestOptionsIUserRequestOptions): Promise<INotificationResult>

Get notifications for a user.

Use dark colors for code blocksCopy
    
1
2
3
4
import { getUserNotifications } from '@esri/arcgis-rest-portal';

getUserNotifications({ authentication })
  .then(results) // results.notifications.length) => 3
Parameters
ParameterTypeNotes
requestOptions
IUserRequestOptions

options to pass through in the request

Returns 
Promise<INotificationResult>

A Promise that will resolve with the user's notifications

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.