Top "Restsharp" questions

RestSharp is a simple to use REST client library for .NET

How to parse JSON using RestSharp?

var client = new RestClient("http://10.0.2.2:50670/api"); var request = new RestRequest("Inventory", Method.GET); request.OnBeforeDeserialization = resp => { resp.ContentType = "application/…

c# xamarin.android restsharp
RestSharp JSON Array deserialization

I launch this RestSharp query in JSON format: var response = restClient.Execute<Report>(request); The response I get …

c# restsharp json-deserialization
How to use RestSharp with OAuth?

I am confused which factory OAuth1Authenticator factory method should I use. I think I should get a consumer secret …

oauth restsharp
What am I missing? RestSharp won't deserialize Json

I am trying to turn a json response back from foursquare into objects. I get something like this back { "meta":{ "…

c# json foursquare restsharp
RestSharp - How do I get the numerical http response code?

I'm using the RestSharp HTTP client library for C#. How I would retrieve the actual numerical http response code? Not …

c# http restsharp
RestSharp OAuth2 Bearer Authentication Failing With Access Denied

I have implemented my own custom IAuthenticator called OAuth2BearerAuthenticator which basically takes in a ClientId and ClientSecret and before …

c# .net oauth-2.0 restsharp
How to idiomatically handle HTTP error codes when using RestSharp?

I'm building an HTTP API client using RestSharp, and I've noticed that when the server returns an HTTP error code (401 …

c# http restsharp
RestSharp client returns all properties as null when deserializing JSON response

I'm trying to do a very simple example of using RestSharp's Execute method of querying a rest endpoint and serializing …

c# json c#-4.0 restsharp
Issue with RestSharp installation in Visual-Studio 2013

I am trying to use RestSharp in my C# Visual-Studio 2013 project to POST data at a given URL. When i …

c# visual-studio-2013 restsharp
Simulate Postman Post in C# - RestSharp

I am doing tests on a browser game. This post request is suppose to issue a command to build a …

c# http-post postman restsharp dotnet-httpclient