📄️ Example
RestSharp works best as the foundation for a proxy class for your API. Each API would most probably require different settings for RestClient. Hence, a dedicated API class (and its interface) gives you sound isolation between different RestClient instances and make them testable.
📄️ RestSharp basics
This page describes some of the essential properties and features of RestSharp.
📄️ Creating the client
Constructors
📄️ Preparing requests
Create a request
📄️ Making calls
Executing requests
📄️ Handling responses
All ExecuteAsync functions return an instance of RestResponse. Similarly, Execute{Method}Async return a generic instance of RestResponse where T is the response object type.