ApiBrasil 2.0.3

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

// Install ApiBrasil as a Cake Tool
#tool nuget:?package=ApiBrasil&version=2.0.3                

Pacote NuGet Dotnet - APIGratis by API BRASIL

Conjunto de API, para desenvolvedores.

Transforme seus projetos em soluções inteligentes com nossa API. Com recursos como API do WhatsApp, geolocalização, rastreamento de encomendas, verificação de CPF/CNPJ e mais, você pode criar soluções eficientes e funcionais.

Canais de suporte (Comunidade)

WhatsApp Group Telegram Group

Obtenha suas credenciais

https://apibrasil.com.br/

Uso

AppSettings.Json

"ApiBrasilConfiguration": {
        "DeviceToken": "myDeviceToken",
        "Authorization": "myAuthorization"
    }

Option Pattern importing ApiBrasil.Domain Program.cs

builder.Services.Configure<ApiBrasilConfiguration>(builder.Configuration.GetSection("ApiBrasilConfiguration"));

Example

import ApiBrasilNugget;

private readonly ApiBrasilConfiguration _apiBrasil;

public Construct(IOptions<ApiBrasilConfiguration> apibrasil)
{
    _apiBrasil = apibrasil.Value;
}

public class ApiBrasilDto
{
    public string Type { get; set; }
    public string Action { get; set; }
    public object Content { get; set; }
}

[HttpPost("v1/apibrasil")]
public async Task<IActionResult> TestApiBrasil([FromBody] ApiBrasilDto var)
{
    try
    {
        var result = await ApiBrasil.Caller(var.Type, var.Action, var.Content, _apiBrasil);

        return Ok(result);
    }
    catch (Exception ex)
    {
        return StatusCode(500, ex);
    }
}
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
2.0.3 310 1/22/2024
2.0.2 100 1/22/2024
2.0.1 98 1/22/2024
2.0.0 110 1/22/2024
1.2.1 193 7/10/2023
1.2.0 167 7/9/2023
1.1.9 160 7/9/2023
1.1.8 171 7/8/2023
1.1.7 174 7/8/2023
1.1.6 155 7/8/2023
1.1.5 165 7/8/2023
1.1.4 160 7/8/2023
1.1.3 164 7/8/2023
1.1.2 161 7/8/2023
1.1.0 167 7/8/2023