Class: ApiClient
Constructors
new ApiClient(client)
private
new ApiClient(client
):ApiClient
Parameters
Parameter | Type |
---|---|
client | Kient |
Returns
Properties
Modifier | Property | Type | Description |
---|---|---|---|
private | _apiFetch | $Fetch | - |
private | _client | Kient | - |
private | _cycleClient | CycleTLSClient | - |
private | bearerToken | string | - |
private | cookieJar | CookieJar | - |
private | kickAuthHeader | string | - |
private | proxy | string | - |
Methods
callKickApi()
callKickApi(
params
):Promise
<CycleTLSResponse
>
Parameters
Parameter | Type |
---|---|
params | CallKickAPICycles |
Returns
Promise
<CycleTLSResponse
>
handleCookies()
private
handleCookies(response
,url
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
response | CycleTLSResponse |
url | string |
Returns
Promise
<void
>
init()
private
init():Promise
<void
>
Returns
Promise
<void
>
setBearerToken()
setBearerToken(
token
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
token | string |
Returns
Promise
<void
>
setKickAuthHeader()
setKickAuthHeader(
kickAuthHeader
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
kickAuthHeader | string |
Returns
Promise
<void
>
setProxy()
setProxy(
proxy
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
proxy | string |
Returns
Promise
<void
>
create()
static
create(client
):Promise
<ApiClient
>
Parameters
Parameter | Type |
---|---|
client | Kient |
Returns
Promise
<ApiClient
>
Generated using typedoc-plugin-markdown and TypeDoc