1.0.3 • Published 1 year ago

musickit-ts v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

musickit-ts

MusicKit TS is a library for handling MusicKit JS v3 with TypeScript.

Usage

  1. MusicKit JS v3 must be available. Read "Getting Stated" article for MusicKit JS v3.

  2. npm i musickit-ts

  3. Create new MusicKitTS and use.

const musicKitTS = new MusicKitTS({
  developerToken: developerToken,
  app: {
    name: appName,
    build: appBuild,
  },
});

const result = await musicKitTS.api.getCatalogResource.Album({
  id: '1479013030',
});

See tests if you want to check more reference implementations.