Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.16 KB

README.md

File metadata and controls

52 lines (37 loc) · 1.16 KB

DotNet CEP Search

Nuget Nuget

This library helps you to get a CEP or Address from brazilian's postal service.

Notes

Version 1.1.1:

  • Upgrade to .NET 6

Installation

Use the package manager to install.

Install-Package DotNetCEPSearch -Version 1.1.1

Usage

After install:

using DotNet.CEP.Search.App;

Get Addres by CEP

CepSearch cep = new CepSearch();
// Returns an object's array with 
//Rua, Bairro, Cidade, Cep, Uf
var addressAsync = await cep.GetAddressByCepAsync("CEP");

var address = GetAddressByCep("CEP");

Get CEP by Address

CepSearch cep = new CepSearch();
// Returns an object's array with 
//Rua, Bairro, Cidade, Cep, Uf
var cepAsync = await cep.GetCepByAddressAsync("address");

var cep = cep.GetCepByAddress("address");

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