Comments (7)
@AlexSays I am fixing the issue with this PR
from asapplemusic.
PR approved. I will close this issue
from asapplemusic.
Hi! Did you configured ASAppleMusic initially with your developer data? You need to call ASAppleMusic.shared.initialize(keyID: String, teamID: String, tokenServer: String)
method. Let me know :)
from asapplemusic.
@AlexSays yes of course I did. I kind of narrowed down the issue. If my developer token is expired then I need first make a call using source = .developer
which fetches a new developer token. Only then I am able to switch to source = .user
and make successful requests.
from asapplemusic.
On further inspection I think the problem is how you pass the headers. According to the documentation it should be like
curl -v -H 'Music-User-Token: [music user token]' -H 'Authorization: Bearer [developer token]' "https://api.music.apple.com/v1/catalog/us/songs/203709340"
but when I inspect the request from Alamofire it is the equivalent of
curl -v -H 'Authorization: Bearer [music user token]' "https://api.music.apple.com/v1/catalog/us/songs/203709340"
from asapplemusic.
Much appreciated, I will take a look. Thank you for your time :)
from asapplemusic.
Pod released with your change in version 1.1.0.
Thank you another time
from asapplemusic.
Related Issues (7)
- Great Demo, Thank you HOT 5
- Where is the url for the full length of the song? I can only see the preview url ! HOT 3
- Getting user token - iOS 12 - "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" HOT 5
- Pulling artwork for artist HOT 2
- Docs link is broken
- Type 'EVObject' does not conform to protocol 'EVReflectable'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asapplemusic.