/UnityRestSharp

RestSharp port for Unity 3D

Primary LanguageC#Apache License 2.0Apache-2.0

RestSharp port for Unity

This is original RestSharp library ported to Unity3D with minor changes:

  • Removed all serializers except default & Newtonsoft
  • Added csc.rsp to link System.Web.dll library

How to install

How to use

Basic usage example:

using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.twitter.com/1.1");
client.Authenticator = new HttpBasicAuthenticator("username", "password");

var request = new RestRequest("statuses/home_timeline.json", DataFormat.Json);

var response = client.Get(request);

You can find more examples in offical RestSharp documentation.