I am trying my following code to get Steam Inventory using JSONP but it give me following error:
Uncaught SyntaxError: Unexpected token :
$.ajax({
url: "http://steamcommunity.com/profiles/76561198383144224/inventory/json/730/2",
dataType: "jsonp",
jsonp: 'jsonp',
jsonpCallback: "callback",
success: function(response) {
alert("Success")
console.log(response)
},
error: function(response) {
alert("Error" + response.status)
}
});
Is there any error or need to change my code?