Skip to main content

Class: ApiClient

Methods

delete

delete<ResponseBodyType, RequestBodyType>(integrationId, endpointId, body?, options?): Promise<HttpResponse<ResponseBodyType>>

Type parameters

NameType
ResponseBodyTypeunknown
RequestBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
body?RequestBodyType
options?ApiOptions

Returns

Promise<HttpResponse<ResponseBodyType>>


get

get<ResponseBodyType>(integrationId, endpointId, options?): Promise<HttpResponse<ResponseBodyType>>

Type parameters

NameType
ResponseBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
options?ApiOptions

Returns

Promise<HttpResponse<ResponseBodyType>>


patch

patch<ResponseBodyType, RequestBodyType>(integrationId, endpointId, body?, options?): Promise<HttpResponse<ResponseBodyType>>

Type parameters

NameType
ResponseBodyTypeunknown
RequestBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
body?RequestBodyType
options?ApiOptions

Returns

Promise<HttpResponse<ResponseBodyType>>


post

post<ResponseBodyType, RequestBodyType>(integrationId, endpointId, body?, options?): Promise<HttpResponse<ResponseBodyType>>

Type parameters

NameType
ResponseBodyTypeunknown
RequestBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
body?RequestBodyType
options?ApiOptions

Returns

Promise<HttpResponse<ResponseBodyType>>


put

put<ResponseBodyType, RequestBodyType>(integrationId, endpointId, body?, options?): Promise<HttpResponse<ResponseBodyType>>

Type parameters

NameType
ResponseBodyTypeunknown
RequestBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
body?RequestBodyType
options?ApiOptions

Returns

Promise<HttpResponse<ResponseBodyType>>


request

request<ResponseBodyType, RequestBodyType>(integrationId, endpointId, body?, options?, method?): Promise<HttpResponse<ResponseBodyType>>

Performs an HTTP API request to the given integration ID and endpoint ID. The provided options will be merged with the default options. In case of error (status code >= 400 or other error), the promise will be rejected with an RpcError.

Type parameters

NameType
ResponseBodyTypeunknown
RequestBodyTypeunknown

Parameters

NameType
integrationIdstring
endpointIdstring
body?RequestBodyType
options?ApiOptions
method?HttpMethod

Returns

Promise<HttpResponse<ResponseBodyType>>