Ejemplo n.º 1
0
        static async Task <TeamsList> GetTeamsListInLeague(int id)
        {
            var msg = await client.GetStringAsync($"https://api.football-data.org/v2/competitions/{id}/teams");

            TeamsList teamsList = JsonConvert.DeserializeObject <TeamsList>(msg);

            return(teamsList);
        }
Ejemplo n.º 2
0
        static async Task <TeamsList> GetTeamsList()
        {
            var msg = await client.GetStringAsync("https://api.football-data.org/v2/teams");

            TeamsList teamsList = JsonConvert.DeserializeObject <TeamsList>(msg);

            return(teamsList);
        }