Application

The Application class is a child class of the SetConfig class. The Application class has a constructor that takes in a applicationID and a config object. The Application class has a bunch of methods that make API calls to the Identity Server.

Constructor

new Application(applicationID, config)

The constructor function is a special function that is called when an object is created from a class

Parameters:
NameTypeDescription
applicationIDstring

The ID of the application you want to use.

configConfig

This is the configuration object that is passed to the constructor of the base class.

Extends

  • SetConfig

Methods

createAPIKey(payload) → {Output-CreateAPIKey}

It creates an API key for the application.

Parameters:
NameTypeDescription
payloadInput-CreateAPIKeyForApplication

Input-CreateAPIKeyForApplication

Returns:

The response from the API.

Type: 
Output-CreateAPIKey

deleteApplication() → {Output-EmptyPayload}

It deletes the application.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

getAPIKeyInfo(payload) → {Output-GetAPIKeyInfo}

It returns the API key information for the application.

Parameters:
NameTypeDescription
payloadInput-GetAPIKeyInfo

Input-GetAPIKeyInfo

Returns:

The response from the API.

Type: 
Output-GetAPIKeyInfo

getAPIKeyList(payloadopt) → {Output-GetAPIKeyList}

It returns the list of API keys for the application.

Parameters:
NameTypeAttributesDescription
payloadInput-GetAPIKeyList<optional>

Input-GetAPIKeyList

Returns:

The response from the API.

Type: 
Output-GetAPIKeyList

getApplicationInfo() → {Output-GetApplication}

It returns the application information.

Returns:

The response from the API.

Type: 
Output-GetApplication

getApplicationList(payloadopt) → {Output-GetApplicationList}

It returns the list of applications that have been created by both user and organization (Default returns ).

Parameters:
NameTypeAttributesDescription
payloadInput-GetApplicationList<optional>

Input-GetApplicationList

Returns:

The response from the API.

Type: 
Output-GetApplicationList

getApplicationRight() → {Output-GetApplicationRight}

It returns the application rights.

Returns:

The response from the API.

Type: 
Output-GetApplicationRight

getCollaboratorInfoOfOrg(payload) → {Output-GetCollaboratorInfoOfOrg}

It returns rights of the collaborator (member) of the application.

Parameters:
NameTypeDescription
payloadInput-GetCollaboratorInfoOfOrg

Input-GetCollaboratorInfoOfOrg

Returns:

The response from the API.

Type: 
Output-GetCollaboratorInfoOfOrg

getCollaboratorInfoOfUser(payload) → {Output-GetCollaboratorInfoOfUser}

It returns rights of the collaborator (member) of the application.

Parameters:
NameTypeDescription
payloadInput-GetCollaboratorInfoOfUser

Input-GetCollaboratorInfoOfUser

Returns:

The response from the API.

Type: 
Output-GetCollaboratorInfoOfUser

getCollaboratorList(payloadopt) → {Output-GetCollabortorList}

It returns the list of collaborators (members) of the application.

Parameters:
NameTypeAttributesDescription
payloadInput-GetCollabortorList<optional>

Input-GetCollabortorList

Returns:

The response from the API.

Type: 
Output-GetCollabortorList

purgeApplication() → {Output-EmptyPayload}

It purges the application.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

restoreApplication() → {Output-EmptyPayload}

It restores the application.

Returns:

The response from the API.

Type: 
Output-EmptyPayload

searchApplication() → {Output-SearchApplication}

It searches the application.

Returns:

The response from the API.

Type: 
Output-SearchApplication

setCollaboratorOfOrg(payload) → {Output-EmptyPayload}

It sets the rights of a collaborator (member) on the application.

Parameters:
NameTypeDescription
payloadInput-SetCollaboratorOfOrg

Input-SetCollaboratorOfOrg

Returns:

The response from the API.

Type: 
Output-EmptyPayload

setCollaboratorOfUser(payload) → {Output-EmptyPayload}

It sets the rights of a collaborator (member) on the application.

Parameters:
NameTypeDescription
payloadInput-SetCollaboratorOfUser

Input-SetCollaboratorOfUser

Returns:

The response from the API.

Type: 
Output-EmptyPayload

updateAPIKey(payload) → {Output-UpdateAPIKey}

It returns the information of the api key that has been created by the user.

Parameters:
NameTypeDescription
payloadInput-UpdateAPIKeyOfApplication

Input-UpdateAPIKeyOfApplication

Returns:

The response from the API.

Type: 
Output-UpdateAPIKey

updateApplication(payload) → {Output-UpdateApplication}

It updates the application information.

Parameters:
NameTypeDescription
payloadInput-UpdateApplication

Input-UpdateApplication

Returns:

The response from the API.

Type: 
Output-UpdateApplication