Socket
Book a DemoInstallSign in
Socket

FubarCoder.RestSharp.Portable.OAuth2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

FubarCoder.RestSharp.Portable.OAuth2

This library contains the OAuth 2.0 authenticators and clients for RestSharp.Portable, which is a port of the OAuth 2.0 authenticators from the original RestSharp project. The OAuth 2.0 clients are a port from the OAuth2 project made by Constantin Titarenko and others. Supported Platforms: - .NET Standard 1.0 - .NET Framework 4 - Silverlight 5 - Portable Class Libraries (Profiles 259 and 328)

4.0.8
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

Portable RestSharp

Build status

Join the chat at https://gitter.im/FubarDevelopment/restsharp.portable

This is some kind of a RestSharp port as PCL and for .NET Core.

License

This project is licensed using the BSD 2-Clause License

NuGet packages

DescriptionBadge
Core libraryFubarCoder.RestSharp.Portable.Core
Request engine using HttpWebRequestFubarCoder.RestSharp.Portable.WebRequest
Request engine using HttpClientFubarCoder.RestSharp.Portable.HttpClient
OAuth 1.0(a) authentication supportFubarCoder.RestSharp.Portable.OAuth1
OAuth 2.0 authentication supportFubarCoder.RestSharp.Portable.OAuth2
Content encoding support (GZip/Deflate)FubarCoder.RestSharp.Portable.Encodings

Request engines

RestSharp.Portable can use either HttpWebRequest or HttpClient as request engine.

HttpWebRequest request engine

Advantage:

  • Mature

Disadvantage:

  • Not configurable

HttpClient request engine

Advantage:

  • Configurable (maybe better performance on iOS/Adroid through ModernHttpClient)

Disadvantage:

  • Behaves differently on different platforms

Changes

Supported platforms

  • .NET Core
  • .NET Framework 4
  • .NET for Windows Store apps
  • .NET Native
  • Windows Phone 8 and 8.1
  • Silverlight 5
  • Portable Class Libraries
  • Xamarin Android
  • Xamarin MonoTouch / iOS

Small example

The following is an example to get the ticker from the bitstamp.net website.

The result class

public class TickerResult
{
	public decimal Last { get; set; }
	public decimal High { get; set; }
	public decimal Low { get; set; }
	public decimal Volume { get; set; }
	public decimal Bid { get; set; }
	public decimal Ask { get; set; }
}

We use the class with:

using (var client = new RestClient(new Uri("https://www.bitstamp.net/api/")))
{
    var request = new RestRequest("ticker", Method.GET);
    var result = await client.Execute<TickerResult>(request);
}

Contributors

Community Support

The support for community projects can be found in my subreddit /r/FubarDev.

Professional Support

You can get professional support here: Fubar Development Junker

Keywords

PCL

FAQs

Package last updated on 06 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.