SteamBot.Trade.GetInventory C# (CSharp) Method

GetInventory() protected method

protected GetInventory ( SteamID steamid ) : dynamic
steamid SteamKit2.SteamID
return dynamic
		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\"}");
			}
		}