Options
All
  • Public
  • Public/Protected
  • All
Menu

HTTP client for interacting with the Botsquad REST API

Hierarchy

  • Client

Index

Constructors

constructor

Properties

Private endpoint

endpoint: string

Methods

Private endpointUrl

  • endpointUrl(botId: string, path?: undefined | string): string
  • Parameters

    • botId: string
    • Optional path: undefined | string

    Returns string

getBotConfig

pushSubscribe

Private request

  • request<RQ, RS>(method: "GET" | "POST", botId: string, path?: undefined | string, request?: RQ): Promise<RS>
  • Type parameters

    • RQ

    • RS

    Parameters

    • method: "GET" | "POST"
    • botId: string
    • Optional path: undefined | string
    • Optional request: RQ

    Returns Promise<RS>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc