videosphere
    Preparing search index...

    Function youtubeFetchPlaylistsPage

    • Fetches one page of the authenticated user's YouTube playlists (playlists.list).

      Parameters

      • accessToken: string

        OAuth access token with YouTube read scope.

      • OptionalpageToken: string

        Optional pagination token from a prior response.

      • Optionalsignal: AbortSignal

        Optional abort signal.

      Returns Promise<
          | { ok: false; error: PlatformUploadError }
          | {
              ok: true;
              items: { id: string; title: string }[];
              nextPageToken?: string;
          },
      >

      Playlist id/title rows for the page, or a structured failure.