Class

ConnectClient

ConnectClient(endpoint, apiKey, adapter) → {ConnectClient}

ConnectClient provides access to resouce endpoints of the Cloud Blue Connect Platform.

Constructor

# new ConnectClient(endpoint, apiKey, adapter) → {ConnectClient}

Creates a new instance of the Cloud Blue ConnectClient class. Configures the beforeRequest hooks to inject the API key in the Authorizaton header and prefixes the url with the API's base url.

Parameters:
Name Type Description
endpoint string

The base URL for API access.

apiKey string

The API key to authenticate with Connect.

adapter AbstractHttpAdapter

An optional adapter.

An instance of the ConnectClient class.

Members

AccountResource

# accounts

Returns an instance of the AccountResource class to access the Account resource endpoint.

AssetResource

# assets

Returns an instance of the AssetResource class to access the Asset resource endpoint.

BillingRequestResource

# billingRequests

Returns an instance of the BillingRequestResource class to access the BillingRequest resource endpoint.

CaseResource

# cases

Returns an instance of the CaseResource class to access the HelpdesCase resource endpoint.

ConversationResource

# conversations

Returns an instance of the ConversationResource class to access the Conversation resource endpoint.

HubResource

# hubs

Returns an instance of the HubResource class to access the Hub resource endpoint.

ListingRequestResource

# listingRequests

Returns an instance of the ListingRequestResource class to access the ListingRequest resource endpoint.

ProductResource

# products

Returns an instance of the ProductResource class to access the Product resource endpoint.

RecurringAssetResource

# recurringAssets

Returns an instance of the RecurringAssetResource class to access the RecurringAsset resource endpoint.

RequestResource

# requests

Returns an instance of the RequestResource class to access the Request resource endpoint.

TierAccountRequestResource

# tierAccountRequests

Returns an instance of the TierAccountRequestResource class to access the TierAccountRequest resource endpoint.

TierAccountResource

# tierAccounts

Returns an instance of the TierAccountResource class to access the TierAccount resource endpoint.

TierConfigRequestResource

# tierConfigRequests

Returns an instance of the TierConfigRequestResource class to access the TierConfigurationRequest resource endpoint.

TierConfigResource

# tierConfigs

Returns an instance of the TierConfigResource class to access the TierConfiguration resource endpoint.

UsageAggregateResource

# usageAggregates

Returns an instance of the UsageAggregateResource class to access the UsageFile resource endpoint.

UsageChunkResource

# usageChunks

Returns an instance of the UsageChunkResource class to access the UsageChunk resource endpoint.

UsageFileResource

# usageFiles

Returns an instance of the UsageFileResource class to access the UsageFile resource endpoint.

UsageReconciliationResource

# usageReconciliations

Returns an instance of the UsageReconciliationResource class to access the UsageReconciliation resource endpoint.

UsageRecordResource

# usageRecords

Returns an instance of the UsagerecordResource class to access the UsageRecord resource endpoint.

WebhookResource

# webhooks

Returns an instance of the WebhookResource class to access the Webhook resource endpoint.