NetCore.Apis.Consumer 1.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package NetCore.Apis.Consumer --version 1.0.5
NuGet\Install-Package NetCore.Apis.Consumer -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NetCore.Apis.Consumer" Version="1.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NetCore.Apis.Consumer --version 1.0.5
#r "nuget: NetCore.Apis.Consumer, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NetCore.Apis.Consumer as a Cake Addin
#addin nuget:?package=NetCore.Apis.Consumer&version=1.0.5

// Install NetCore.Apis.Consumer as a Cake Tool
#tool nuget:?package=NetCore.Apis.Consumer&version=1.0.5
  1. Set up an ApiConsumer object and provide the base URL
 var consumer = new ApiConsumer("http://myApiUrl");
  1. Create a basic HTTP request with get, post, put or delete. Let's say the post returns an object of a class "User":
 var response = consumer.PostAsync<User>("api/myurl", obj); // generic type is optional. 
  1. The response object can be used to check the following
 HttpStatusCode statusCode = response.StatusCode;
 string text = response.TextResponse; // response also has an implicit operator to string
 HttpResponseMessage msg = response.Response;
 if (response.IsBadRequest) Dictionary<string, string[]> errors = response.Errors; // default format provided by .net core API
 if (response.IsSuccessful) User user = response; // or response.Data
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NetCore.Apis.Consumer:

Package Downloads
NetCore.Apis.Client.UI

Link consumed data from NetCore.Apis.Consumer to any UI

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.0 738 2/13/2019
1.1.1 708 10/15/2018
1.1.0 779 9/6/2018
1.0.6 898 7/4/2018
1.0.5 1,690 7/1/2018
1.0.2 940 6/29/2018
1.0.1 894 6/28/2018
1.0.0 896 6/27/2018

- error validations
     - default events