← Public packages
@kody/spotify
Read a Spotify profile, search the catalog, and manage library, playlists, devices, and playback.
Files
import { getPlaylist } from '../lib/spotify-api.ts'
import type { PlaylistIdParams } from '../lib/export-types.ts'
/**
* Read a Spotify playlist summary and up to 100 track previews.
* @example
* import getPlaylist from 'kody:@kody/spotify/get-playlist'
* const playlist = await getPlaylist({ playlistId: '37i9dQZF1DXcBWIGoYBM5M' })
*/
export default async function spotifyGetPlaylist(params: PlaylistIdParams) {
return await getPlaylist(params)
}