Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/spotify

src/exports/get-saved-tracks.ts

12 lines · 445 B · TypeScript
import { getSavedTracks } from '../lib/spotify-api.ts'
import type { GetSavedTracksParams } from '../lib/export-types.ts'

/**
 * Read tracks saved in the user's Spotify library.
 * @example
 * import getSavedTracks from 'kody:@kody/spotify/get-saved-tracks'
 * const tracks = await getSavedTracks({ limit: 10 })
 */
export default async function spotifyGetSavedTracks(params: GetSavedTracksParams = {}) {
	return await getSavedTracks(params)
}