Constructors

Properties

authMiddleware: Middleware
concurrentMiddleware: Middleware
correlationIdMiddleware: Middleware
errorMiddleware: Middleware
httpMiddleware: Middleware
loggerMiddleware: Middleware
middlewares: Middleware[] = []
projectKey: string
queueMiddleware: Middleware
userAgentMiddleware: Middleware

Methods

  • Parameters

    • baseUri: string
    • credentials: Credentials
    • Optional oauthUri: string
    • Optional projectKey: string
    • Optional scopes: string[]
    • Optional httpClient: Function

    Returns ClientBuilder

  • Parameters

    • Optional customLogic: ((version, request, response) => Promise<string | Record<string, any> | Buffer>)
        • (version, request, response): Promise<string | Record<string, any> | Buffer>
        • Parameters

          Returns Promise<string | Record<string, any> | Buffer>

    Returns ClientBuilder