/SimpleOAuth.Net

OAuth for the .Net Core - made super easy.

Primary LanguageC#MIT LicenseMIT

Simple OAuth for .NET Core

Build Status

Example:

var tokens = new Tokens() { ConsumerKey = "key", ConsumerSecret = "secret",
	AccessKey = "key", AccessKeySecret = "secret" };
var request = WebRequest.Create("https://api.twitter.com/1/statuses/home_timeline.json?count=5");
request.SignRequest()
	.WithTokens(tokens)
	.InHeader();

Or, you can condense your WithTokens call into the SignRequest

request.SignRequest(tokens).InHeader();