DotNetAgenciasCorreios 2.0.0
dotnet add package DotNetAgenciasCorreios --version 2.0.0
NuGet\Install-Package DotNetAgenciasCorreios -Version 2.0.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="DotNetAgenciasCorreios" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DotNetAgenciasCorreios" Version="2.0.0" />
<PackageReference Include="DotNetAgenciasCorreios" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DotNetAgenciasCorreios --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DotNetAgenciasCorreios, 2.0.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.
#:package DotNetAgenciasCorreios@2.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DotNetAgenciasCorreios&version=2.0.0
#tool nuget:?package=DotNetAgenciasCorreios&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DotNet.Agencias.Correios is a .Net library that helps you to get brazilian's mail agency.
Notes
Version 2.0.0
- Upgrade to .NET 9
- Fix URL Correios
Installation
Use the package manager to install.
Install-Package DotNetAgenciasCorreios -Version 2.0.0
Usage
services.<ChooseYours><IHttpClientWrapper, HttpClientWrapper>();
services.<ChooseYours><IAgenciasCorreios, AgenciasCorreios>();
Features
You will get an object with an object's array with Nome, CEP, Endereço and Situação
var agencias = GetAgenciasAsync("SP", "Sao Paulo", "Centro");
// agencias.Agencia[0].Nome -> AC CENTRAL DE SAO PAULO
// agencias.Agencia[0].CEP -> 01031-959
// agencias.Agencia[0].Endereco -> PRACA DO CORREIO, SN
// agencias.Agencia[0].Situacao -> FECHADA - Abre Segunda às 10:00
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- HtmlAgilityPack (>= 1.11.37)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Beta version