user1322654
user1322654

Reputation:

Cannot use the "getSpotifyApi" function in spotify app

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

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...

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

Upvotes: 0

Views: 483

Answers (1)

José M. Pérez
José M. Pérez

Reputation: 3279

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.

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

Upvotes: 0

Related Questions