不能使用" getSpotifyApi"在Spotify应用功能 [英] Cannot use the "getSpotifyApi" function in spotify app

查看:225
本文介绍了不能使用" getSpotifyApi"在Spotify应用功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不管我们尝试,每次我尝试调用函数getSpotifyApi它总是返回:
的ReferenceError:getSpotifyApi没有定义

No matter what we try, every time I try to call the function "getSpotifyApi" it always returns: "ReferenceError: getSpotifyApi is not defined"

我难倒哪里从这里走,因为我不能做任何事情的Spotify,如果它不会让我使用其API ...

I'm stumped on where to go from here because I can't do anything with spotify if it wont let me use its api...

所有我的javascript code在标签我的应用程序的index.html的。

All my javascript code is in tags in the index.html of my app.

推荐答案

如果 getSpotifyApi 没有定义,可能是因为你使用的是1.X API,它使用一种不同的方法,以包括框架。我建议你​​去看看在开发准则这也解释了基础知识如何入门。

If getSpotifyApiis not defined it is probably because you are using the 1.X API, which uses a different approach to include the frameworks. I would recommend you to have a look at the Developer Guidelines which explains the basics on how to getting started.

还有一个示例应用程序在GitHub上的,你可以用它来看看不同的可用框架是如何使用的。

There is also a sample app on GitHub that you can use to see how the different available frameworks are used.

这篇关于不能使用" getSpotifyApi"在Spotify应用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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