function listPlaylistsByUser
listPlaylistsByUser(
userId: string,
requestingUserId: string | null,
page: number,
limit: number,
categoryId?: string
): Page<Playlist>

Returns a page of userId's playlists, in the order sort names, for GET /api/users/:key/playlists, optionally only those in the playlist category categoryId. The private ones are listed only when requestingUserId is userId.

Parameters

userId: string
requestingUserId: string | null
page: number
limit: number
optional
categoryId: string

Return Type

Usage

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