Exemplo n.º 1
0
 public static string Parse()
 {
     using (WebClient client = new WebClient())
     {
         string    thina = client.DownloadString("https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=BTC&to_currency=USD&apikey=EVUWUA3ID1W5BEQF");
         JsonParse items = JsonConvert.DeserializeObject <JsonParse>(thina);
         return(items.Display());
     }
 }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     CreateWebHostBuilder(args).Build().Run();
     using (WebClient client = new WebClient())
     {
         string    thina = client.DownloadString("https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=BTC&to_currency=USD&apikey=EVUWUA3ID1W5BEQF");
         JsonParse items = JsonConvert.DeserializeObject <JsonParse>(thina);
         items.Display();
     }
 }