{"action":"opened","issue":{"url":"https://api.github.com/repos/timflapper/cordova-spotify-plugin/issues/4","labels_url":"https://api.github.com/repos/timflapper/cordova-spotify-plugin/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/timflapper/cordova-spotify-plugin/issues/4/comments","events_url":"https://api.github.com/repos/timflapper/cordova-spotify-plugin/issues/4/events","html_url":"https://github.com/timflapper/cordova-spotify-plugin/issues/4","id":90220878,"number":4,"title":"Javascript error: Can't find variable: spotify","user":{"login":"traecadenhead","id":10750452,"avatar_url":"https://avatars.githubusercontent.com/u/10750452?v=3","gravatar_id":"","url":"https://api.github.com/users/traecadenhead","html_url":"https://github.com/traecadenhead","followers_url":"https://api.github.com/users/traecadenhead/followers","following_url":"https://api.github.com/users/traecadenhead/following{/other_user}","gists_url":"https://api.github.com/users/traecadenhead/gists{/gist_id}","starred_url":"https://api.github.com/users/traecadenhead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traecadenhead/subscriptions","organizations_url":"https://api.github.com/users/traecadenhead/orgs","repos_url":"https://api.github.com/users/traecadenhead/repos","events_url":"https://api.github.com/users/traecadenhead/events{/privacy}","received_events_url":"https://api.github.com/users/traecadenhead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-22T21:46:13Z","updated_at":"2015-06-22T21:46:13Z","closed_at":null,"body":"After a long and vicious battle, I finally got the plugin installed and building. However, when I try to call the spotify.authenticate method in javascript, I'm getting the js error \"can't find variable: spotify.\" My first thought was that it was not loading all of the plugin javascript files, but I've checked everything and all 7 js files from the plugin are loading fine. I looked at the js files, though, and didn't see any sort of \"spotify\" object - for instance in the auth.js file it looks like the object is \"auth\" instead of \"spotify\". I'm including a screenshot of my cordova_plugins.js file just in case references there may be wrong (as far as I can tell they should be correct).\r\n\r\n![shot](https://cloud.githubusercontent.com/assets/10750452/8293874/19f4bf70-18fe-11e5-9375-87918bcd7287.jpg)\r\n\r\nAny pointers?"}}