What resource types are supported by MusicKIt addToLibrary function?

96 Views Asked by At

My code for adding songs to user's music library looks like this:

let kit = MusicKit.getInstance();
kit.authorize()
    .then(() => {
        kit.addToLibrary('1234567', 'SONGS');
    });

Do you know what other types, besides SONGS, are supported? Apple's documentation of addToLibrary function is not very informative.

Apple's documentation of addToLibrary function

0

There are 0 best solutions below