Organization

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

Constructor

new Organization(organizationID, config)

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

Parameters:
NameTypeDescription
organizationIDstring

The ID of the organization you want to get the list of users from.

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 organization.

Parameters:
NameTypeDescription
payloadInput-CreateAPIKeyForOrg

Input-CreateAPIKeyForOrg

Returns:

The response from the API.

Type: 
Output-CreateAPIKey

createApplication(payload) → {Output-CreateApplication}

It creates an application for the organization.

Parameters:
NameTypeDescription
payloadInput-CreateApplication

Input-CreateApplication

Returns:

The response from the API.

Type: 
Output-CreateApplication

createGateway(payload) → {Output-CreateGateway}

It creates a gateway for the organization.

Parameters:
NameTypeDescription
payloadInput-CreateGateway

CreateGateway

Returns:

The response from the API. ----> CreateGateway

Type: 
Output-CreateGateway

getAPIKeyInfo(payload) → {Output-GetAPIKeyInfo}

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

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 that have been created by the organization.

Parameters:
NameTypeAttributesDescription
payloadInput-GetAPIKeyList<optional>

Input-GetAPIKeyList

Returns:

The response from the API.

Type: 
Output-GetAPIKeyList

getApplicationList(payloadopt) → {Output-GetApplicationList}

It returns the list of applications that have been created by the organization.

Parameters:
NameTypeAttributesDescription
payloadInput-GetApplicationList<optional>

Input-GetApplicationList

Returns:

The response from the API.

Type: 
Output-GetApplicationList

getCollaboratorInfo(payload) → {Output-GetCollaboratorInfo}

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

Parameters:
NameTypeDescription
payloadInput-GetCollaboratorInfo

Input-GetCollaboratorInfo

Returns:

The response from the API.

Type: 
Output-GetCollaboratorInfo

getGatewayList(payloadopt) → {Output-GetGatewayList}

It returns the list of gateways that have been created by the organization.

Parameters:
NameTypeAttributesDescription
payloadInput-GetGatewayList<optional>

Input-GetGatewayList

Returns:

The response from the API. ----> GetGatewayList

Type: 
Output-GetGatewayList

setCollaborator(payload) → {Output-EmptyPayload}

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

Parameters:
NameTypeDescription
payloadInput-SetCollaborator

Input-SetCollaborator

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-UpdateAPIKeyOfOrg

Input-UpdateAPIKeyOfOrg

Returns:

The response from the API.

Type: 
Output-UpdateAPIKey