protected dynamic GetInventory (SteamID steamid)
{
string url = String.Format (
"http://steamcommunity.com/profiles/{0}/inventory/json/440/2/?trading=1",
steamid.ConvertToUInt64 ()
);
try {
string response = Fetch (url, "GET", null, false);
return JsonConvert.DeserializeObject (response);
} catch (Exception) {
return JsonConvert.DeserializeObject ("{\"success\":\"false\"}");
}
}