This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Live Coin Watch sample code migrated to be compatible with RestSharp v107 | |
var client = new RestClient( | |
new RestClientOptions("https://api.livecoinwatch.com/coins/list") { | |
Timeout = -1 | |
} | |
); | |
var request = new RestRequest() | |
.AddHeader("x-api-key", "your API key here") | |
.AddJsonBody(new { | |
currency = "USD", |