using System.Collections.Generic;
using System.Threading.Tasks;
public async static Task GetAsyncCurrency()
var client = new HttpClient();
var response = await client.GetAsync("https://free.currconv.com/api/v7/convert?q=USD_PHP&compact=ultra&apiKey=74b32e79e4b7676567c2");
Console.WriteLine(await response.Content.ReadAsStringAsync());
public static HttpResponseMessage GetSyncCurrency()
var client = new HttpClient();
var response = client.GetAsync("https://free.currconv.com/api/v7/convert?q=USD_PHP&compact=ultra&apiKey=74b32e79e4b7676567c2")
.GetAwaiter().GetResult();
public static async Task Main()
await GetAsyncCurrency();
Console.WriteLine(await GetSyncCurrency().Content.ReadAsStringAsync());