11 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
5 star 9
4 star 1
3 star 0
2 star 1
1 star 0
Compatible with
  • iOS
  • Android

RestSharp 104.4.0

John Sheehan

A simple REST client for consuming HTTP APIs.

RestSharp makes it easy to consume the wide array of services on the web over HTTP, like: Amazon, Facebook, or even Twitter...

Features

  • Automatic XML and JSON deserialization
  • Supports custom serialization and deserialization via ISerializer and IDeserializer
  • Fuzzy element name matching ('product_id' in XML/JSON will match C# property named 'ProductId')
  • Automatic detection of type of content returned
  • GET, POST, PUT, HEAD, OPTIONS, DELETE supported
  • Other non-standard HTTP methods also supported
  • oAuth 1, oAuth 2, Basic, NTLM and Parameter-based Authenticators included
  • Supports custom authentication schemes via IAuthenticator
  • Multi-part form/file uploads
  • T4 Helper to generate C# classes from an XML document

Example

using RestSharp;
// ...

var client = new RestClient ("http://rxnav.nlm.nih.gov/REST/RxTerms/rxcui/");

var request = new RestRequest (String.Format ("{0}/allinfo", "198440"));
client.ExecuteAsync (request, response => {
    Console.WriteLine (response.Content);
});
Write a Review

1 review

Targus Signity

Hi I am using your component for API and suddenly I am getting an error related to your component. an error is following:

Error MT2002: Failed to resolve assembly: 'RestSharp.MonoDroid, Version=104.1.0.0, Culture=neutral, PublicKeyToken=null' (MT2002)

Can you please help me to get rid of this?

Thanks

Posted on: May 27 / Version: 104.1.0