I want to develop an app with the Spotify API. I have downloaded the Spotify library for Windows and also set path in environmental variables for spotify.dll. I am trying to run the simple “hello word” example available on the Spotify developers site but I am getting an error with the Spotify function
getSpotifyApi(1);
I don’t know what exactly this function does.
Is it required to put API_key in code file? I don’t have the appkey.c file in Spotify library right now. Are API_key and the appkey.c file required for running simple applications? Are there additional requirements for running simple examples?
Your code and your question is confused between the Apps API and LibSpotify.
If you want to make applications INSIDE Spotify, go here for examples and resources: http://developer.spotify.com/en/spotify-apps-api/overview/
If you want to make your own applications that contain Spotify functionality, go here: http://developer.spotify.com/en/libspotify/overview/