Options
All
  • Public
  • Public/Protected
  • All
Menu

Module api/utils

Index

Variables

Const CONCURRENCY

CONCURRENCY: number = parseInt(concurrency, 10)

Const RETRY_LIMIT

RETRY_LIMIT: number = parseInt(retryLimit, 10)

Functions

getApiUrl

  • getApiUrl(config: ClientConfig, product?: string, apiVersion?: string): string
  • Parameters

    • config: ClientConfig
    • Default value product: string = "serverless"
    • Default value apiVersion: string = "v1"

    Returns string

getPaginatedResource

  • getPaginatedResource<TList, TEntry>(client: TwilioServerlessApiClient, url: string, opts?: OptionsOfJSONResponseBody): Promise<TEntry[]>
  • Type parameters

    Parameters

    Returns Promise<TEntry[]>

isSid

  • isSid(value: unknown): value is Sid
  • Parameters

    • value: unknown

    Returns value is Sid

Generated using TypeDoc