如何在iOS之外创建Apple Music用户令牌 [英] How to Create a Apple Music User Token outside iOS
问题描述
我试图通过网页让人们喜欢Apple Music上的曲目,专辑或播放列表。
I am trying to let people like tracks, albums or playlists on Apple Music from a webpage.
我理解本页的手册:
< a href =https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/AppleMusicWebServicesReference/SetUpWebServices.html =nofollow noreferrer> https://developer.apple.com/library/content /documentation/NetworkingInternetWeb/Conceptual/AppleMusicWebServicesReference/SetUpWebServices.html
直到我点击我应该使用 requestUserToken的部分(forDeveloperToken) :completionHandler:)
来自StoreKit框架中SKCloudServiceController的方法,因为没有可用于iOS之外的StoreKit框架。
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.
如何生成此令牌?有没有其他方法可以手动生成这个音乐用户令牌?
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!
推荐答案
我在iOS应用程序中尝试了这种方法。
I have tried the approach within my iOS app.
你可以关注这个链接生成音乐令牌
这基本上是python脚本。您可以从Mac轻松创建音乐开发人员令牌。
This is basically python script. You can easily create a music developer token from your mac.
这篇关于如何在iOS之外创建Apple Music用户令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!