In this post, we will see how to resolve Why Restsharp request object won’t be renewed in every call Question: This is my RestClientService : I have a list of comments and list of products that I iterate over them ...

In this post, we will see how to resolve Get Thumbnail from FORGE API but received status code 202 Question: I’m trying to get thumbnail from Forge API here https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/thumbnails/urn-thumbnail-GET/ ` I got it with Postman and axios successfully, and ...

Question: I added a request.AddParameter(“application/json; charset=utf-8”, JsonConvert.SerializeObject(body), ParameterType.RequestBody); or by request.AddJsonBody(body, “application/json”); to the request object They work. How to delete this body from the request object and add a new one (or update it -if it is possible) instead ...

Question: I am looking to deserialize the data returned from a REST API. I am struggling to get the data to map to my object. It seems like I am probably looking at the entire JSON response and not isolating ...

Question: I have restsharp 107.1.2 loaded via nuget target framework is .net 6.0. The following code claims that IRestResponse reference is missing, though I feel like I’m following pretty close to the RestSharp documentation. What am I missing? Answer: As ...

Question: Since some time it seems the NtlmAuthenticator of RestSharp is deprecated. The somewhere mentioned method of setting setting.UseDefaultCredentials = true; isn’t available either. So how can I use NTLM or Kerberos with RestSharp? AND NO! I cannot say the ...

Question: i am currently try to get information of an external API using RestSharp (Version 107.1.2). Unfortunately, in every request I get response Status Code 403 “Forbidden”. I now have contact to the provider and he told me, to delete ...

Question: I get an error (after update RestSharp – v107) on the following line: var contacts = new JsonDeserializer().Deserialize<List<Contact>>(response); Error CS0246 The type or namespace name ‘JsonDeserializer’ could not be found (are you missing a using directive or an assembly ...

Question: I am consuming an API that returns json data as string. That is its return type is Task<string>. Generally API returns an object of Response class which is then serialized by dot NET. But in this case the API ...

Question: I’m using the new RestSharp v107, which started using the System.Text.Json classes to manage JSON (de)serialization. This being the case, I thought we would be able to provide our own instance of JsonSerializerOptions to customize how serialization is handled, ...