Properties
Private endpoint
endpoint: string
Methods
Private endpointUrl
- endpointUrl(botId: string, path?: undefined | string): string
-
Parameters
-
botId: string
-
Optional path: undefined | string
Returns string
pushSubscribe
-
Parameters
-
botId: string
-
userToken: string
-
-
data: any
Private request
- request<RQ, RS>(method: "GET" | "POST", botId: string, path?: undefined | string, request?: RQ): Promise<RS>
-
Type parameters
Parameters
-
method: "GET" | "POST"
-
botId: string
-
Optional path: undefined | string
-
Optional request: RQ
Returns Promise<RS>
HTTP client for interacting with the Botsquad REST API