Spotify API Web:不带Node.js的OAuth [英] Spotify API Web : OAuth without Node.js

查看:131
本文介绍了Spotify API Web:不带Node.js的OAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了Web API Spotify.我遵循了该教程( https://developer.spotify.com/web-api/tutorial/)以创建身份验证. 但是,它使用Node.js,我想知道我们是否可以不用它? (我的其余代码在javascript中,不需要Node.js)

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)

谢谢.

Vincent Leveque

Vincent Leveque

推荐答案

您可以仅使用前端代码来使用Spotify的Web API.

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

您可能想看看 JavaScript包装器,它提供了所有API端点的语言绑定,因此可以节省大量时间.如果您没有后端,则检索访问令牌的唯一方法是通过隐式授予"流程,请参阅演示应用程序了解更多详细信息.

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.

这篇关于Spotify API Web:不带Node.js的OAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆