Hi, do we have oAuth 2.0 support documentation for RestSharp. I don't find any kind of API documentation for RestSharp in website. https://restsharp.dev/usage/authenticators.html
Please provide some help to locate the documentation
Hello everybody. I am facing a deserialization problem. Hopefully someone can help me out.
I have to deserialize a list without a container item. It has the following format:
<root>
<list-item></list-item>
<list-item></list-item>
</root>
instead of
<root>
<list>
<list-item></list-item>
<list-item></list-item>
</list>
</root>
How can I archive it?
Hi all, is it expected that the current locale changes the way the decimal separator is represented in GET requests (and possibly other places)?
E.g.: My system is set to german locale and unless I turn floats to strings myself with the invariant
locale when adding them to a request, floats get separated with ,
in the URL. This confuses the API I want to talk to.
Minimal example:
float a = 1.2f;
var request = new RestRequest("column/longitudinal/diameter_quantity", DataFormat.None)
.AddParameter("a", ParameterType.QueryString);
var response = restClient.Execute<LongitudinalDiameterAndQuantity>(request, Method.GET);
results in a request to URL /column/longitudinal/diameter_quantity?a=1%2c2
Instead of .
, a ,
is used encoded as %2C
SecureChannelFailure
. The exact same endpoint works fine in Chrome, Firefox, Powershell Curl. RestSharp just won't connect.
request.AddJsonBody(mYtype);
var httpClient = new RestClient("service url");
IRestResponse clientResponse = httpClient.Execute(request);
JsonConvert.Serialize(restRequest)
:Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'ManifestModule' with type 'System.Reflection.RuntimeModule'. Path 'OnBeforeDeserialization.Method.Module.Assembly'.