Skip to content

Interface: ChzzkOpenClientOptions ​

Defined in: src/client.ts:22

Properties ​

baseUrl? ​

ts
optional baseUrl?: string;

Defined in: src/client.ts:34

기본값: https://openapi.chzzk.naver.com


clientId ​

ts
clientId: string;

Defined in: src/client.ts:23


clientSecret ​

ts
clientSecret: string;

Defined in: src/client.ts:24


expirySkewSeconds? ​

ts
optional expirySkewSeconds?: number;

Defined in: src/client.ts:28

만료 이 초 전부터 토큰을 선제 갱신. 기본 60초.


fetch? ​

ts
optional fetch?: {
  (input, init?): Promise<Response>;
  (input, init?): Promise<Response>;
};

Defined in: src/client.ts:32

테스트/커스텀 런타임용 fetch 주입

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
input ​

URL | RequestInfo

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
input ​

string | URL | Request

init? ​

RequestInit

Returns ​

Promise<Response>


logger? ​

ts
optional logger?: ChzzkLogger;

Defined in: src/client.ts:29


retry? ​

ts
optional retry?: RetryOptions;

Defined in: src/client.ts:30


tokenStore? ​

ts
optional tokenStore?: TokenStore;

Defined in: src/client.ts:26

유저 토큰 저장소. 기본은 메모리(프로세스 재시작 시 소실).

공식 OPEN API만 지원 — 비공식 엔드포인트 0건