Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.23 KB

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