DEV Community

Max Angelo Dapitilla Perin
Max Angelo Dapitilla Perin

Posted on

Answer: IRestResponse could not be found

As per the documentation (https://restsharp.dev/v107/#restsharp-v107) ...

The IRestResponse interface is deprecated. You get an instance of RestResponse or RestResponse<T> in return.

https://restsharp.dev/v107/#deprecated-interfaces

Again, according to the documentation ...

var client = new RestClient("https://api.myorg.com")
var request = new RestRequest()
    .AddQueryParameter("foo", "bar")
    .AddJsonBody(someObject);

var response = await client.PostAsync<MyResponse>(request, cancellationToken);

Top comments (0)