Defines the connection properties for your Efficy web API

Constructors

Properties

apiKey?: string
cookies?: Cookie[]
customer?: string

The definition object of the targeted CRM environment.

id?: string
interceptors: Readonly<{
    onError: CrmFetchErrorInterceptor;
    onPositiveResponse: CrmFetchResponseInterceptor;
    onRequest: CrmFetchRequestInterceptor;
}> = ...

Type declaration

logOff?: boolean
name: string = "CrmEnv"
pwd?: string
retryWithNewSession?: boolean
url?: string
useCookies?: boolean
useFetchQueue?: boolean
user?: string

Accessors

  • get cookieHeader(): string
  • Returns the request header for cookies.

    Returns string

  • get sessionId(): string
  • Returns the session ID from cookies.

    Returns string

  • get shortSessionId(): string
  • Returns the first part of the session ID.

    Returns string

Methods

  • Updates the CRM environment configuration.

    Parameters

    • env: CrmEnvConfig

      The definition object of the targeted CRM environment.

    Returns void