Skip to content

Query addresses for Brazilian ZIP codes (CEPs) in Haxe, using the WebmaniaBR REST API

License

Notifications You must be signed in to change notification settings

protocubo/webmaniabr-correios.hx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webmaniabr-correios.hx

Search addresses for Brazilian ZIP codes – known locally as CEPs – with the WebmaniaBR REST API.

Usage

var api = new Correios(appKey, appSecret);
api.queryCep("80540-180", function (res) {
	switch res {
	case Some(address):  // zip code exists
		trace(address);
	case None:           // zip code doesn't exist
		trace("unkown cep");
	case Failure(err):   // api failure
		trace('api error: $err');
	}
});
{ endereco: "Avenida Anita Garibaldi", bairro: "Ahú", cidade: "Curitiba", uf: "PR", cep: "80540-180" }

About

Query addresses for Brazilian ZIP codes (CEPs) in Haxe, using the WebmaniaBR REST API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published