/Authsome

service that allows you to send requests (including OAuth and Basic Auth) and parse the response in one step and removing all the retry logic, encoding, serialization, refreshing tokens.

Primary LanguageC#MIT LicenseMIT

Authsome

This project is no longer maintained

Nuget

  1. .net Standard: https://www.nuget.org/packages/Authsome
  2. Portable: https://www.nuget.org/packages/Authsome.Portable

Method Example:

Return / Response


var response = await authsome.GetAsync("https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US");
if (response.httpStatusCode == System.Net.HttpStatusCode.OK)
{
    var image = response.Content.images.FirstOrDefault();
    Console.WriteLine("image url" + image.url);
}
else
{
    Console.WriteLine(response.httpStatusCode.ToString() + " - " + response.ErrorJson);
}

*** Look at CoreConsoleApp within the solution to see an example of how to generate an invoice within Quickbooks online.