{"action":"created","issue":{"url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/1","labels_url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/1/comments","events_url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/1/events","html_url":"https://github.com/ckatzorke/angular-giantbomb/issues/1","id":100214905,"number":1,"title":"Using this in a controller","user":{"login":"doodirock","id":3209701,"avatar_url":"https://avatars.githubusercontent.com/u/3209701?v=3","gravatar_id":"","url":"https://api.github.com/users/doodirock","html_url":"https://github.com/doodirock","followers_url":"https://api.github.com/users/doodirock/followers","following_url":"https://api.github.com/users/doodirock/following{/other_user}","gists_url":"https://api.github.com/users/doodirock/gists{/gist_id}","starred_url":"https://api.github.com/users/doodirock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doodirock/subscriptions","organizations_url":"https://api.github.com/users/doodirock/orgs","repos_url":"https://api.github.com/users/doodirock/repos","events_url":"https://api.github.com/users/doodirock/events{/privacy}","received_events_url":"https://api.github.com/users/doodirock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-11T02:58:12Z","updated_at":"2015-08-12T22:52:54Z","closed_at":null,"body":"Do you have any examples of how to use this wrapper in a controller.  I can't seem to get this to work."},"comment":{"url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/comments/130471228","html_url":"https://github.com/ckatzorke/angular-giantbomb/issues/1#issuecomment-130471228","issue_url":"https://api.github.com/repos/ckatzorke/angular-giantbomb/issues/1","id":130471228,"user":{"login":"ckatzorke","id":629385,"avatar_url":"https://avatars.githubusercontent.com/u/629385?v=3","gravatar_id":"","url":"https://api.github.com/users/ckatzorke","html_url":"https://github.com/ckatzorke","followers_url":"https://api.github.com/users/ckatzorke/followers","following_url":"https://api.github.com/users/ckatzorke/following{/other_user}","gists_url":"https://api.github.com/users/ckatzorke/gists{/gist_id}","starred_url":"https://api.github.com/users/ckatzorke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckatzorke/subscriptions","organizations_url":"https://api.github.com/users/ckatzorke/orgs","repos_url":"https://api.github.com/users/ckatzorke/repos","events_url":"https://api.github.com/users/ckatzorke/events{/privacy}","received_events_url":"https://api.github.com/users/ckatzorke/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T22:52:54Z","updated_at":"2015-08-12T22:52:54Z","body":"Are you sure it is not just because of the second `?' in your base URL (?callback=JSON_CALLBACK)\r\nAfter looking at my code (oh my gosh,,,) I changed the search function to using the api/search endpoint and to only parameterize query and api_key (which would make sense since they are dynamic), using a pretty much complete base URI (like in your URL)\r\n\r\n    gameSearch : function(searchString, callback){\r\n\t\t\t    $resource('http://www.giantbomb.com/api/search?resources=game&field_list=name,original_release_date,api_detail_url,site_detail_url&format=jsonp&json_callback=JSON_CALLBACK',\r\n\t\t\t        {\r\n\t\t\t\t\t\t\t\tquery:  searchString,\r\n\t\t\t          api_key: this._apiKey\r\n\t\t\t        },\r\n\t\t\t        {\r\n\t\t\t          get: {method: 'JSONP'}\r\n\t\t\t        }).get({}, function(result){\r\n\t\t\t          callback(result);\r\n\t\t\t        });\r\n\t\t    \t}\r\n\r\nHowever, this works fine, but of course changing the ampersand before callback to ? causes an error..."}}