static private async Task api()

in dotnet/Program.cs [24:38]


        static private async Task api(string[] args)
        {
			    var request = new HttpRequestMessage {
      		Method = HttpMethod.Get,
			        RequestUri = new Uri("https://ats.api.alexa.com/api?Action=TopSites&Count=5&CountryCode=" +args[1] + "&ResponseGroup=Country")
			    };

          request.Headers.Add("x-api-key", args[0]);

			    var client = new HttpClient();
			    var response = await client.SendAsync(request);

			    var responseStr = await response.Content.ReadAsStringAsync();
          Console.WriteLine(responseStr);
        }