pagbank-dotnet 1.1.2

dotnet add package pagbank-dotnet --version 1.1.2                
NuGet\Install-Package pagbank-dotnet -Version 1.1.2                
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="pagbank-dotnet" Version="1.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add pagbank-dotnet --version 1.1.2                
#r "nuget: pagbank-dotnet, 1.1.2"                
#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 pagbank-dotnet as a Cake Addin
#addin nuget:?package=pagbank-dotnet&version=1.1.2

// Install pagbank-dotnet as a Cake Tool
#tool nuget:?package=pagbank-dotnet&version=1.1.2                

Visão Geral

A pagbank-dotnet foi desenvolvida para simplificar e agilizar a comunicação com APIs RESTful. Ela oferece recursos avançados e uma integração perfeita com o RestSharp para realizar operações assíncronas, processar dados, autenticar solicitações e muito mais.

Principais Recursos

  • Integração perfeita com o RestSharp para chamadas RESTful
  • Suporte a autenticação segura e gerenciamento de tokens
  • Operações assíncronas eficientes para não bloquear a thread principal
  • Abstração de dados para simplificar o processamento de respostas
  • Extensa documentação e exemplos práticos

Documentação Oficial do PagBank

Para informações detalhadas sobre como usar a biblioteca pagbank-dotnet em conjunto com as APIs do PagBank, consulte a nossa Documentação Oficial.

Exemplo de uso

using PagBank;

var client = new PagBankClient();
client.WithBaseUrl(BaseUrl.Sandbox);
client.WithMethod(PagBankMethod.Get);
client.WithToken("your-token");
client.WithResource("{seu_recurso}");
Exemplo de criar o pedido
var body = new PagBankBody
{
    Customer = new Customer
    {
        TaxId = "62046100077",
        Email = "teste@teste.com.br",
        Name = "Test"
    },
    ReferenceId = "1234"
};
client.WithBaseUrl(BaseUrl.Sandbox);
client.WithMethod(PagBankMethod.Post);
client.WithJsonBody(body);
client.WithToken("your-token");
client.WithResource("orders");
var response = await client.ExecuteAsync();
Exemplo de consultar pedidos
client.WithBaseUrl(BaseUrl.Sandbox);
client.WithMethod(PagBankMethod.Get);
client.WithToken("your-token");
client.WithResource("orders/ORDE_XXXXXXXX");
var response = await client.ExecuteAsync();
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.2 234 8/27/2023
1.1.1 164 8/19/2023
1.1.0 159 8/17/2023
1.0.9 158 8/15/2023
1.0.8 152 8/13/2023
1.0.7 188 8/12/2023
1.0.6 179 8/12/2023
1.0.5 190 8/10/2023