Skip to content
0

katanakit-js / useGetUploadsPlaylistId

Function: useGetUploadsPlaylistId() ​

ts
function useGetUploadsPlaylistId(channelId?): Promise<FetchResult<string>>;

Defined in: src/core/services/youtube.service.ts:189

Resolves a channel id to its uploads playlist id (quota cost: 1 unit). Prefer passing playlistId to useGetChannelVideos to skip this call.

Parameters ​

ParameterTypeDefault valueDescription
channelIdstringyoutubeConfig.channelIdChannel id (defaults to the configured one).

Returns ​

Promise<FetchResult<string>>

Safe Result with the uploads playlist id.

Released under the MIT License.