Spotify API Web : OAuth without Node.js

陌路散爱 提交于 2019-12-07 13:44:37

问题


I used the Web API Spotify. I followed the tutorial ( https://developer.spotify.com/web-api/tutorial/ ) to create authentication. However, it using Node.js and I wonder if we can do without it? (the rest of my code is in javascript and does not require Node.js)

Thank you in advance.

Vincent Leveque


回答1:


You can work with Spotify's Web API using only frontend code.

You might want to have a look at the JavaScript wrapper as it offers language bindings for all API endpoints so it should save you a lot of time. If you're working without a backend, the only way to retrieve access tokens is through the Implicit Grant flow, see documentation or demo application for more detailed information.



来源:https://stackoverflow.com/questions/29073752/spotify-api-web-oauth-without-node-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!