Constructors
constructor
- new Client(accountID: string, licenseKey: string, timeout?: number): Client
Parameters
accountID: string
licenseKey: string
timeout: number = 3000
Properties
Private accountID
accountID: string
Private licenseKey
licenseKey: string
Private timeout
timeout: number
Methods
factors
Parameters
Returns Promise<default>
Private handleError
- handleError(data: ResponseError, response: IncomingMessage, url: string): WebServiceClientError
Parameters
data: ResponseError
response: IncomingMessage
url: string
Returns WebServiceClientError
insights
Parameters
Returns Promise<default>
reportTransaction
Parameters
Returns Promise<void>
Private responseFor
- responseFor<T>(path: servicePath, postData: string, modelClass?: any): Promise<T>
Type parameters
Parameters
path: servicePath
postData: string
Optional modelClass: any
Returns Promise<T>
score
Parameters
Returns Promise<default>