SDK-CloudDfe
1.0.1
dotnet add package SDK-CloudDfe --version 1.0.1
NuGet\Install-Package SDK-CloudDfe -Version 1.0.1
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="SDK-CloudDfe" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SDK-CloudDfe --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SDK-CloudDfe, 1.0.1"
#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 SDK-CloudDfe as a Cake Addin #addin nuget:?package=SDK-CloudDfe&version=1.0.1 // Install SDK-CloudDfe as a Cake Tool #tool nuget:?package=SDK-CloudDfe&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SDK em C# para API Integra Notas
Este SDK visa simplificar a integração do seu sistema com a nossa API, oferecendo classes com funções pré-definidas para acessar as rotas da API. Isso elimina a necessidade de desenvolver uma aplicação para se comunicar diretamente com a nossa API, tornando o processo mais eficiente e direto.
Forma de instalação de nosso SDK:
dotnet add package SDK-CloudDfe
Forma de uso:
using Newtonsoft.Json;
using Sdk.CloudDfe;
var config = new Dictionary<string, object>
{
{ "token", "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbXAiOjQ2MSwidXNyIjoxNzAsInRwIjoyLCJpYXQiOjE2NTE1MDYzMjR9.a0cOwP6BUDZAboYwMzoMjutCtFM8Ph-X4pLahZIB_V4" },
{ "ambiente", Consts.AMBIENTE_HOMOLOGACAO },
{ "timeout", 60 },
{ "debug", true }
};
var nfe = new Nfe(config);
try
{
var resp = Task.Run(async () => await nfe.Status()).GetAwaiter().GetResult();
string jsonOutput = JsonConvert.SerializeObject(resp, Formatting.Indented);
Console.WriteLine(jsonOutput);
}
catch (ArgumentException ex)
{
Console.WriteLine($"Erro ao obter o status: {ex.Message}");
}
Sobre dados de envio e retornos
Para saber os detalhes referente ao dados de envio e os retornos consulte nossa documentação IntegraNotas Documentação.
Veja alguns exemplos de consumi de nossa API nos link abaixo:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- System.Net.Http (>= 4.3.4)
- System.Threading.Tasks (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Setup