Spotify api
Is anyone familiar with howto use the Spotify Web api? I'm not sure how authentication works in an application with regards to the callback url?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Is anyone familiar with howto use the Spotify Web api? I'm not sure how authentication works in an application with regards to the callback url?
Hello -
Sorry, we are not familiar with Spotify API you will need to check this in Spotify documentation. Or perhaps someone from community will share a solution.
Thanks, I did end up figuring it out.
To authenticate with spotify...
I created a javascript method called authenticate, that navigated to a custom html page (in the source folders) that I created using window.open(url, "_blank") which opens in the in app browser.
Then, I added a on load event to that page, and checked for the appropriate headers, if they didn't exist, the page navigated to the link that spotify gives using this.location.href = url. with the callback url of location.href (you'll want to log it to add it to your spotify developer account). Then, when the page gets navigated back to yours, it will find that there are headers and then passes those back to the windows using window.opener (accesses window that opened current window)
Then close the page. You can also do this with an iframe, but only after the user authenticates the first time, due to security reasons.
at some later time I'll probably write up a more detailed tutorial, if anyone wants to know now they can just reply to this thread