iosstorekitapple-music

How to Create a Apple Music User Token outside iOS


I am trying to let people like tracks, albums or playlists on Apple Music from a webpage.

I understand the manual on this page: https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/AppleMusicWebServicesReference/SetUpWebServices.html

Until I hit the part where I should use the requestUserToken(forDeveloperToken:completionHandler:) method from SKCloudServiceController in the StoreKit framework, since there is no StoreKit framework available for outside iOS/macOS/tvOS/etc.

How is this token generated? Is there any other way I can generate this Music User Token manually?

I know it is a (very) longshot, but maybe someone figured it out!


Solution

  • I have tried the approach within my iOS app.

    You can follow this link generate music token

    This is basically python script. You can easily create a music developer token from your mac.