I've been trying to develop a web app using the spotify api, but the documentation uses curl for api curls and I'm having a bit of trouble trying to figure out how to get an access token using javascript's fetch api. Any help will be appreciated.
this is how i made it in react, hope someon out there finds it usefull.🙌
Any curl request can be translated into a fetch request.
Here is a tool that can do that for you:
https://kigiri.github.io/fetch/