Skip to content

joao2391/DotNetAgenciasCorreios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DotNet.Agencias.Correios Nuget Nuget

DotNet.Agencias.Correios is a .Net library that helps you to get brazilian's mail agency.

Notes

Version 1.0.1:

  • Upgrade to .NET 6

Installation

Use the package manager to install.

Install-Package DotNetAgenciasCorreios  -Version 1.0.1

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

MIT

Releases

No releases published

Packages

No packages published