public List <Player> GetPlayersSearch(string nombre) { string url = "https://www.futbin.com/search?year=21&extra=1&v=1&term="; string searh = url + nombre; string json = ToolkitService.GetWebRequest(searh); return(ToolkitService.DeserializeJsonObject <List <Player> >(json)); }
public List <Prices> GetPrices(int id) { string url = "Https://www.futbin.com/21/playerPrices?player="; string searh = url + id; string json = ToolkitService.GetWebRequest(searh); Newtonsoft.Json.Linq.JObject obj = Newtonsoft.Json.Linq.JObject.Parse(json); IList <JToken> data = obj[id.ToString()]["prices"].Children().ToList(); return(ToolkitService.DeserializeJsonObject <List <Prices> >(json)); }