Git Product home page Git Product logo

Comments (7)

fotiDim avatar fotiDim commented on September 26, 2024 1

@AlexSays I am fixing the issue with this PR

from asapplemusic.

Alexsilvacodes avatar Alexsilvacodes commented on September 26, 2024 1

PR approved. I will close this issue

from asapplemusic.

Alexsilvacodes avatar Alexsilvacodes commented on September 26, 2024

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.

fotiDim avatar fotiDim commented on September 26, 2024

@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.

fotiDim avatar fotiDim commented on September 26, 2024

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.

Alexsilvacodes avatar Alexsilvacodes commented on September 26, 2024

Much appreciated, I will take a look. Thank you for your time :)

from asapplemusic.

Alexsilvacodes avatar Alexsilvacodes commented on September 26, 2024

Pod released with your change in version 1.1.0.

Thank you another time

from asapplemusic.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.