getUserInvitations

Function

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

Get all invitations for a user. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IUserRequestOptions

options to pass through in the request

Returns

Promise<IInvitationResult> - A Promise that will resolve with the user's invitations


Function defined in packages/arcgis-rest-users/src/invitation.ts:47