taxjar / taxjar.net

Sales Tax API Client for .NET / C#
https://developers.taxjar.com/api/reference/?csharp
MIT License
23 stars 23 forks source link

Throw Buried Errors from RestSharp & Custom Timeouts #12

Closed fastdivision closed 6 years ago

fastdivision commented 6 years ago

This PR resolves #11 to expose RestSharp connection errors such as timeouts. It also introduces custom global timeouts when instantiating the API client:

var client = new TaxjarApi("API_TOKEN", new {
    apiUrl = "https://api.taxjar.com",
    timeout = 30
});