I try get banners information with angular js from thetvdb api, and not work. Here is the complete code:
var app = angular.module("tvdbApp", []);
app.controller('bannersCtl', function($scope, $http) {
$http.jsonp(
//'https://thetvdb.com/api/<myapikey>/series/274431/banners.xml' // gotham
'https://thetvdb.com/api/<myapikey>/series/279121/banners.xml' // flash
).then(function(res) {
console.log(res)
}, function(res){
console.error(res)
})
});
Of course, the api key is valid.
When I try the url-s in the browser, works well, I got the XML.
What is the problem?
Thank you.