ApiBrasil 1.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ApiBrasil --version 1.2.0
NuGet\Install-Package ApiBrasil -Version 1.2.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="ApiBrasil" Version="1.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ApiBrasil --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ApiBrasil, 1.2.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 ApiBrasil as a Cake Addin #addin nuget:?package=ApiBrasil&version=1.2.0 // Install ApiBrasil as a Cake Tool #tool nuget:?package=ApiBrasil&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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)
Obtenha suas credenciais
Uso
AppSettings.Json
"ApiBrasilConfiguration": {
"SecretKey": "mySecretKey",
"PublicToken": "myPublicToken",
"DeviceToken": "myDeviceToken",
"Authorization": "myAuthorization"
}
Option Pattern importing ApiBrasil.Domain Program.cs
builder.Services.Configure<ApiBrasilConfiguration>(builder.Configuration.GetSection("ApiBrasilConfiguration"));
Example
import ApiBrasil;
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.GenericCaller.Call(var.Type, var.Action, var.Content, _apiBrasil);
return Ok(result);
}
catch (Exception ex)
{
return StatusCode(500, ex);
}
}
Product | Versions 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.
-
net7.0
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.1)
- RestSharp (>= 110.2.0)
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 | 598 | 1/22/2024 |
2.0.2 | 103 | 1/22/2024 |
2.0.1 | 109 | 1/22/2024 |
2.0.0 | 114 | 1/22/2024 |
1.2.1 | 204 | 7/10/2023 |
1.2.0 | 170 | 7/9/2023 |
1.1.9 | 163 | 7/9/2023 |
1.1.8 | 174 | 7/8/2023 |
1.1.7 | 179 | 7/8/2023 |
1.1.6 | 158 | 7/8/2023 |
1.1.5 | 168 | 7/8/2023 |
1.1.4 | 163 | 7/8/2023 |
1.1.3 | 169 | 7/8/2023 |
1.1.2 | 164 | 7/8/2023 |
1.1.0 | 170 | 7/8/2023 |