NFeio.Client
1.0.3
dotnet add package NFeio.Client --version 1.0.3
NuGet\Install-Package NFeio.Client -Version 1.0.3
<PackageReference Include="NFeio.Client" Version="1.0.3" />
paket add NFeio.Client --version 1.0.3
#r "nuget: NFeio.Client, 1.0.3"
// Install NFeio.Client as a Cake Addin #addin nuget:?package=NFeio.Client&version=1.0.3 // Install NFeio.Client as a Cake Tool #tool nuget:?package=NFeio.Client&version=1.0.3
Nfeio.Client - the C# library for the Service Invoice API (api.nfe.io)
This C# SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- SDK version: 1.0.0
- Build package: Nfeio.Client.codegen.languages.CSharpClientCodegen
<a name="frameworks-supported"></a>
Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
Dependencies
The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Installation
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using Nfeio.Client.Apis;
using Nfeio.Client.Clients;
using Nfeio.Client.Models;
Packaging
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
nuget pack -Build -OutputDirectory out Nfeio.Client.csproj
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
<a name="getting-started"></a>
Getting Started
using System;
using System.Diagnostics;
using Nfeio.Client.Apis;
using Nfeio.Client.Clients;
using Nfeio.Client.Models;
namespace Example
{
public class Example
{
public void main()
{
// Configure API key authorization: apiKey
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new CompaniesApi();
var companyId = companyId_example; // string | ID da empresa
var file = new System.IO.Stream(); // System.IO.Stream | Arquivo do certificado digital com extensao PFX ou P12
var password = password_example; // string | Senha do arquivo do certificado digital
try
{
// Upload do certificado digital da empresa usando o codificação multipart/form-data.
string result = apiInstance.CompaniesCertificateUpload(companyId, file, password);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling CompaniesApi.CompaniesCertificateUpload: " + e.Message );
}
}
}
}
Product | Versions 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 | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.6 is compatible. netstandard2.0 was computed. 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 | tizen30 was computed. 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. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.3 | 1,171 | 2/19/2018 |