Professional Documents
Culture Documents
{
var wishlist = [];
var wishlisted = [];
jQuery.ajax({
type: 'GET',
url: '//api.steampowered.com/ISteamApps/GetAppList/v2',
dataType: 'jsonp',
success: function(result){
jQuery.each(result['applist']['apps'], function(key, value){
wishlist.push(value['appid']);
})
jQuery.ajax({
type: 'GET',
url: 'https://store.steampowered.com/dynamicstore/userdata/',
dataType: 'json',
success: function(result) {
jQuery.each(result['rgWishlist'], function (index, value) {
wishlisted.push(value);
});
var Index;
for (var i=0; i<wishlisted.length; i++) {
Index = wishlist.indexOf(wishlisted);
if (Index > -1) {
wishlist.splice(Index, 1);
}
}
var i = 0,
loaded = 0,
total = wishlist.length,
modal = ShowBlockingWaitDialog( 'Executing...',
'Please wait until all requests finish. Ignore all the
errors, let it finish.' );
modal.Dismiss();
i++;
ExecuteRequest();
}
}
);
};