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/
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.
See the examples/
folder for some ways it can be used.
To run it do: pnpm dev
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).