Skip to content

Class: ApiClient

Constructors

new ApiClient(client)

private new ApiClient(client): ApiClient

Parameters

ParameterType
clientKient

Returns

ApiClient

core/api.client.ts:31

Properties

ModifierPropertyTypeDescription
private_apiFetch$Fetch-
private_clientKient-
private_cycleClientCycleTLSClient-
privatebearerTokenstring-
privatecookieJarCookieJar-
privatekickAuthHeaderstring-
privateproxystring-

Methods

callKickApi()

callKickApi(params): Promise<CycleTLSResponse>

Parameters

ParameterType
paramsCallKickAPICycles

Returns

Promise<CycleTLSResponse>

core/api.client.ts:51


handleCookies()

private handleCookies(response, url): Promise<void>

Parameters

ParameterType
responseCycleTLSResponse
urlstring

Returns

Promise<void>

core/api.client.ts:85


init()

private init(): Promise<void>

Returns

Promise<void>

core/api.client.ts:38


setBearerToken()

setBearerToken(token): Promise<void>

Parameters

ParameterType
tokenstring

Returns

Promise<void>

core/api.client.ts:73


setKickAuthHeader()

setKickAuthHeader(kickAuthHeader): Promise<void>

Parameters

ParameterType
kickAuthHeaderstring

Returns

Promise<void>

core/api.client.ts:77


setProxy()

setProxy(proxy): Promise<void>

Parameters

ParameterType
proxystring

Returns

Promise<void>

core/api.client.ts:81


create()

static create(client): Promise<ApiClient>

Parameters

ParameterType
clientKient

Returns

Promise<ApiClient>

core/api.client.ts:45


Generated using typedoc-plugin-markdown and TypeDoc