spotify / apps-tutorial

A Spotify App that contains working examples of the use of Spotify Apps API
https://developer.spotify.com/technologies/apps/
627 stars 146 forks source link

How to use the "preview" API ? #20

Closed gfauredumont closed 11 years ago

gfauredumont commented 11 years ago

Hi,

I'm trying to clean my app by using what's described in your API preview page, but I get errors...

For instance models.application.addEventListener('activate', my_fonction); will give me Object #<Application> has no method 'addEventListener'

for this one, I'm refering to https://developer.spotify.com/technologies/apps/docs/preview/api/api-models-application.html

Is this next API already available for us ?

Thanks

thelinmichael commented 11 years ago

Hey @gfauredumont. It seems as if you're using the 'older' API (version 0.x). The new API is indeed available, simply change the dependencies in your manifest according to our Developer Guidelines (http://developer.spotify.com/technologies/apps/guidelines/developer/#spotifyframeworks).

gfauredumont commented 11 years ago

OK, I got it, I'll try this asap THANKS ! ;)

(so the "preview" is not a preview but the real thing, right ?)