Class call

Deprecated - Make asynchronous/synchronous requests.

Hierarchy

  • call

Constructors

Properties

apiURL: string
reqUserAgent: string
retryInfo: {
    retryCount: number;
    retryLimit: number;
} = ...

Type declaration

  • retryCount: number
  • retryLimit: number

Methods

  • Parameters

    • method: string
    • endpoint: string
    • TOKEN: string
    • BODY: null | string | object

    Returns Promise<undefined | object>

  • Parameters

    • method: string
    • endpoint: string
    • TOKEN: string
    • BODY: null | string | object

    Returns undefined | object

  • Parameters

    • endpoint: string
    • token: string
    • Optional crashOnRejection: boolean

    Returns Promise<void | object>

  • Parameters

    • endpoint: string
    • token: string
    • Optional queryParams: string | object
    • crashOnRejection: boolean = true

    Returns Promise<void | object>

  • Parameters

    • endpoint: string
    • token: string
    • data: string | object
    • crashOnRejection: boolean = true

    Returns Promise<void | object>

  • Parameters

    • endpoint: string
    • token: string
    • data: string | object
    • crashOnRejection: boolean = true

    Returns Promise<void | object>

  • Parameters

    • endpoint: string
    • token: string
    • data: string | object
    • crashOnRejection: boolean = true

    Returns Promise<void | object>