From a9cf504f04036919c779f28e2a693db11d1354c1 Mon Sep 17 00:00:00 2001 From: yj0524_kr Date: Sat, 5 Oct 2024 23:08:07 +0900 Subject: [PATCH] fix: change api version --- src/api/live.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/live.ts b/src/api/live.ts index 0a3e758..e105d7a 100644 --- a/src/api/live.ts +++ b/src/api/live.ts @@ -150,7 +150,7 @@ export class ChzzkLive { } async status(channelId: string): Promise { - return this.client.fetch(`/polling/v2/channels/${channelId}/live-status`) + return this.client.fetch(`/polling/v3/channels/${channelId}/live-status`) .then(r => r.json()) .then(data => { const content = data['content'] @@ -170,7 +170,7 @@ export class ChzzkLive { } async detail(channelId: string): Promise { - return this.client.fetch(`/service/v2/channels/${channelId}/live-detail`) + return this.client.fetch(`/service/v3/channels/${channelId}/live-detail`) .then(r => r.json()) .then(data => { const content = data['content']