apple-musickit

Connecting to Apple Music

我是研究僧i 提交于 2020-06-27 16:46:08
问题 So Im trying to connect to Apple Music from an iOS device using a react native application, There is an API present for doing the same but I need to call a function from the storekit framework ? to make personalised requests. Apple Music API : https://developer.apple.com/documentation/applemusicapi Function to be called : https://developer.apple.com/documentation/storekit/skcloudservicecontroller/2909079-requestusertoken Im not sure how to go about this, I'm a beginner at React Native, could

Apple Music Kit - Play song with ID from user in storefront A for user with storefront B

做~自己de王妃 提交于 2020-06-26 04:09:15
问题 If I am based in the US and I want to play the song "Sun" by Two Door Cinema Club I would use the ID 544390857 . I can do this in (for example) the systemMusicPlayer and the song begins to play in Apple Music. If my friend is based in the UK and wants to play the same song, sending 544390857 to the systemMusicPlayer results in the song not being recognised (and nothing played). The GB storefront equivalent ID for that song is 674900368 . I have two questions: Is there an easy way of me being

MusicKitJS: Can't play songs from user's library

非 Y 不嫁゛ 提交于 2020-01-03 06:06:11
问题 So I'm experimenting with Apple's MusicKit JS (https://developer.apple.com/documentation/musickitjs) that was released last week. I'm having trouble playing songs fetched from the library endpoints and from what I can tell it's because of the id format. If I use their doc examples and set the queue to an album with an id like 1025210938 , songs play fine. However when getting a song from a user's iCloud library (ie. /v1/me/library/albums or in musickitjs case music.api.library.albums() ) I

How to find Explicit Songs on Apple Music User Playlists iOS?

心不动则不痛 提交于 2019-12-13 20:09:06
问题 I am fetching all Apple Music Playlists and Track lists into my App using AppleMusicAPI (Refers https://developer.apple.com/documentation/applemusicapi). Also In my App's Setting screen I have added a UISwitch to allow Explicit contents of Apple Music . I can able to get Explicit songs in below Search API and Top Tracks API using attributes.contentRating JSON key. Top Charts API: https://api.music.apple.com/v1/catalog/us/charts?limit=20&offset=0&types=songs Search API: https://api.music.apple

How to get a Catalog Playlist id for Apple Music API?

核能气质少年 提交于 2019-12-13 08:44:46
问题 I am currently developing a 3rd-party client for Apple Music on iOS devices, but got stuck when trying to fetch artworks for catalog playlists. According to Apple Music API, "Get a Catalog Playlist", we may fetch a playlist by using its identifier as a path parameter, and the URL of the artwork is contained in the response : https://developer.apple.com/documentation/applemusicapi/get_a_catalog_playlist However, the playlist identifier is nowhere to be found, does anyone know how exactly can I

Error getting a userToken for Apple Music SDK with JWT

故事扮演 提交于 2019-12-12 12:17:20
问题 I'm trying unsuccessfully to get a userToken for Apple Music SDK using the developerToken from JWT. I've used pelauimagineering/apple-music-token-generator and I could get a valid and static userToken. But apple recommend to make dynamic, so I'm trying to use JWT again. Someone can tell me please what's wrong with my code? Thank you func fetchDeveloperToken() -> String? { func fetchDeveloperToken() -> String? { let iat = Date().timeIntervalSince1970 let days = TimeInterval(24*60*60*120) //120

AppleMusicKit SDK / Sample Project - UserToken issue

↘锁芯ラ 提交于 2019-12-11 08:03:26
问题 I'm currently experimenting with the Adding-Content-to-Apple-Music code found here: https://developer.apple.com/musickit/ I'm using: XCode 9 beta 2, iOS 11 (iPhone 5s) I have a developer token (which works when I query the Apple Music API searching songs etc...) but I now want to use this to exchange for a User Token so I can perform write actions against my Apple Music account. The test app fires up and allows me to request authentication. From this I can see: MPMedia Library - Authorized