I try get use thetvdb api with angular.js, and the response is failed. The result size is 0, but the response status code is 200. What I try:
$http.get('http://thetvdb.com/api/' + TVDBApiKey + '/series/' + showData.externals.thetvdb + '/banners.xml').then(function(res) { console.log(res.data) }, function(res){ console.error(res) }) The result:
Yes, I know, the result is XML, and and later still to be resolved the parsing, but is the another story. (simple jquery parse or x2js, I found possibilities) But where is the response, why 0 byte?
Thank you
No comments:
Post a Comment