chzzk
Version:
네이버 라이브 스트리밍 서비스 CHZZK의 비공식 API 라이브러리
19 lines (18 loc) • 672 B
TypeScript
import { ChatAccessToken, ChzzkChat, ChzzkChatOptions, Profile } from "./chat";
import { NoticeOptions } from "./api/chat";
export interface ChzzkAPIBaseUrls {
chzzkBaseUrl?: string;
gameBaseUrl?: string;
}
export interface ChzzkClientOptions {
nidAuth?: string;
nidSession?: string;
baseUrls?: ChzzkAPIBaseUrls;
userAgent?: string;
}
export type ChzzkChatFunc = {
(options: string | ChzzkChatOptions): ChzzkChat;
accessToken: (chatChannelId: string) => Promise<ChatAccessToken>;
profileCard: (chatChannelId: string, uid: string) => Promise<Profile>;
notice: (chatChannelId: string, notice?: NoticeOptions) => Promise<Response>;
};