function getPlaylistById
getPlaylistById(
playlistId: string,
viewerId?: string | null
): Playlist

Returns playlist playlistId, private or not. A caller that shows it to someone must check isPublic first, as the OG middleware does. Its dumpCount and lastDumpAt are viewerId's, or a signed-out viewer's without one.

Parameters

playlistId: string
optional
viewerId: string | null = null

Return Type

Throws

APIException

404 when there is no such playlist.

Usage

import { getPlaylistById } from "api/services/playlist-service.ts";