Package contains functionality to assist .NET projects with making requests to Branta's server.
- .NET 8.0 or higher
Install via NuGet Package Manager:
dotnet add package BrantaOr via Package Manager Console:
Install-Package Branta// Register DI Services
using Branta.V2.Extensions;
services.ConfigureBrantaServices();
// OR with default options set
services.ConfigureBrantaServices(new BrantaClientOptions() {
BaseUrl = "",
DefaultApiKey = ""
});
// Use within your Services
using Branta.V2.Classes;
public class Example
{
private readonly BrantaClient _brantaClient;
public Example(BrantaClient brantaClient)
{
_brantaClient = brantaClient;
}
public async Task ExampleMethod()
{
await _brantaClient.GetPaymentsAsync("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa");
}
}- Open .sln file in Visual Studio
- Update version in
Branta/Branta.csproj - Change Configuration from Debug to Release
- Run Build
- Package can be found at
Branta/bin/Release/Branta.X.X.X.nupkg - Upload this file to the new release on nuget.org