Skip to content

UseInitYoutube

katanakit-js / useInitYoutube

function useInitYoutube(config): void;

Defined in: core/services/youtube.service.ts:493

Registers the YouTube APIs and stores the default channel.

Parameter Type Description
config { apiKey: string; channelId: string; } -
config.apiKey? string YouTube Data API v3 key (server/build-time only, never public).
config.channelId? string Default channel id (UC…). Per-call params can override it.

void

YoutubeService.useInitYoutube