Properties
Private
concurrentMiddleware
Private
correlationIdMiddleware
Private
projectKey
projectKey: string
Private
userAgentMiddleware
Methods
defaultClient
- defaultClient(baseUri, credentials, oauthUri?, projectKey?, scopes?, httpClient?): ClientBuilder
Parameters
- baseUri: string
- credentials: Credentials
Optional
oauthUri: stringOptional
projectKey: stringOptional
scopes: string[]Optional
httpClient: Function
Private
withAuthMiddleware
withClientCredentialsFlow
withConcurrentModificationMiddleware
- withConcurrentModificationMiddleware(customLogic?): ClientBuilder
Parameters
Optional
customLogic: ((version, request, response) => Promise<string | Record<string, any> | Buffer>)- (version, request, response): Promise<string | Record<string, any> | Buffer>
Returns Promise<string | Record<string, any> | Buffer>
withCorrelationIdMiddleware