@tidal-music/playlist
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

TIDAL Playlist v2 Beta

A thin wrapper around the API described at: https://developer.tidal.com/apiref?spec=user-playlist-v2&ref=get-playlists-v2 (which is again built on the JSON API spec: https://jsonapi.org/format/)

The module provides Typescript types and a fetch based function for getting data, using: https://openapi-ts.pages.dev/

Usage

One function is exposed that can be used for creating a function that can then do network calls: createPlaylistClient. Also the API types are exposed and can be used directly.

Example

See the examples/ folder for some ways it can be used.

To run it do: pnpm dev

Development

Run pnpm generateTypes to regenerate the types from the API specs.

PS: Client Credentials Flow is not supported yet for this endpoint (so only user login).

/@tidal-music/playlist/

    Package Sidebar

    Install

    npm i @tidal-music/playlist

    Weekly Downloads

    6

    Version

    0.2.0

    License

    Apache-2.0

    Unpacked Size

    112 kB

    Total Files

    5

    Last publish

    Collaborators

    • karlsson
    • osmestad
    • rchl
    • goatherder