UseInitYoutube
katanakit-js / useInitYoutube
Function: useInitYoutube()
Section titled “Function: useInitYoutube()”function useInitYoutube(config): void;Defined in: core/services/youtube.service.ts:493
Registers the YouTube APIs and stores the default channel.
Parameters
Section titled “Parameters”| 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. |
Returns
Section titled “Returns”void