NuCli 20240206.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NuCli --version 20240206.3.0                
NuGet\Install-Package NuCli -Version 20240206.3.0                
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="NuCli" Version="20240206.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuCli --version 20240206.3.0                
#r "nuget: NuCli, 20240206.3.0"                
#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 NuCli as a Cake Addin
#addin nuget:?package=NuCli&version=20240206.3.0

// Install NuCli as a Cake Tool
#tool nuget:?package=NuCli&version=20240206.3.0                

NuClient

NuClient � uma biblioteca para interagir com a API do Nubank para buscar eventos(transa��es, pagamentos, etc) dos cart�es de cr�dito.

Opera��es

  • LoginAsync(): Autenticar o usu�rio com as credenciais fornecidas.
  • AutenticateWithQrCodeAsync(string code): Autentica o usu�rio usando um c�digo QR.
  • GetEventsAsync(): Recupera eventos da conta do usu�rio autenticado.
  • GetTransactionDetailsAsync(Event @event): Obt�m detalhes de transa��o para um evento espec�fico.

Como usar

O c�digo abaixo exemplifica como usar, mas tamb�m � poss�vel rodar o Console.App NubankApp que est� na mesma solution do c�digo.


string login = "seu_login";
string senha = "sua_senha";

NubankClient nubankClient = new NubankClient(login, senha);
var result = await nubankClient.LoginAsync();

if (result.NeedsDeviceAuthorization)
{
	Console.WriteLine("You must authenticate with your phone to be able to access your data.");
	Console.WriteLine("Scan the QRCode below with you Nubank application on the following menu:");
	Console.WriteLine("Nu(Seu Nome) > Perfil > Acesso pelo site");
	Console.WriteLine();

	Console.WriteLine(result.GetQrCodeAsAscii());
	Console.WriteLine($"Use your phone to scan and after this press any key to continue...");
	Console.ReadKey();

	await nubankClient.AutenticateWithQrCodeAsync(result.Code);
	var events = await nubankClient.GetEventsAsync();
}
Product 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.

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
20240215.2.0 128 2/15/2024
20240215.1.0 121 2/15/2024
20240207.4.0 132 2/7/2024
20240207.3.0 118 2/7/2024
20240207.2.0 135 2/7/2024
20240207.1.0 119 2/7/2024
20240206.4.0 108 2/6/2024
20240206.3.0 132 2/6/2024