Skip to content

joao2391/DotNetAgenciasCorreios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 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 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

MIT

About

This lib helps you to get brazilian's mail agency

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors