getUserInvitation

Function

import { getUserInvitation } from '@esri/arcgis-rest-users';
// username is inferred from UserSession
getUserInvitation({
  invitationId: "3ef",
  authentication
})
  .then(response) // => response.accepted => true

Get an invitation for a user by id. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IInvitationRequestOptions

options to pass through in the request

Returns

Promise<IInvitation> - A Promise that will resolve with the invitation


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