Identity

Identity

Service to interact with the API User identities endpoints

Constructor

new Identity(options)

Creates an instance of the identity client

Source:
Parameters:
Name Type Description
options Object

configuration parameters

Methods

getAuthorisingIndividual() → {Promise}

Get the authorising individual's identity

Source:
Parameters:
Name Type Description
parameters.apiUrl string

the API URL

parameters.accessToken string

the oauth bearer token.

Returns:
Type:
Promise
  • the http request promise

getTokenIdentity() → {Promise}

Get the current token identity

Source:
Parameters:
Name Type Description
parameters.apiUrl string

the API URL

parameters.accessToken string

the oauth bearer token.

Returns:
Type:
Promise
  • the http request promise