I'm trying to use Goodreads APIs for my sideproject but facing some problem. The below URL returns XML data. If I use datatype: 'xml'
then I get cross-domain error and thats why I've used 'jsonp' but still gets Uncaught SyntaxError: Unexpected token <
error. Am I doing wrong?
$.ajax({
url : 'http://www.goodreads.com/user/show/userid.xml?key=developerKey&id=userId,
method : 'get',
dataType : 'jsonp',
success : function (data) {
console.log($.parseXML(data));
}
});