Reputation: 852
The URL I wish to access is:
http://steamcommunity.com/market/priceoverview/?country=US¤cy=2&appid=570&market_hash_name=Formed%20Alloy%20Set
and I'm wondering if it's possible to parse this in AngularJS? I'm unfamiliar with JSONP so I don't quite understand the process. Also the headers returned are application/json.
Upvotes: 1
Views: 252
Reputation: 8168
Steam API does not support jsonp - it means that you can't access it through javascript XMLHttpRequest. One possible workaround could be to implement a server side proxy and wrap a steam API call with this proxy.
Upvotes: 1
Reputation: 675
Yeah its definitely possible. Inject the $http resource into your controller and your call could look something like this:
Javascript
myApp.controller('MyCtrl', function ($scope, $http) {
$http.get(URL).success(function (data) {
$scope.data = data;
});
});
Upvotes: 0