Skip to content

Viacepex is a simple wrapper around Viacep API.

License

Notifications You must be signed in to change notification settings

migore/viacepex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viacepex

Viacepex is a simple wrapper around viacep API.

Installation

The package can be installed as:

  1. Add viacepex to your list of dependencies in mix.exs:
def deps do
[
 {:viacepex, "~> 0.0.2"}
]
end
  1. (Before elixir 1.4 only) Ensure viacepex is started before your application:
def application do
[applications: [:viacepex]]
end

Quickstart

iex> Viacepex.get! "01001000"
#%{bairro: "Sé", cep: "01001-000", complemento: "lado ímpar", gia: "1004",
#  ibge: "3550308", localidade: "São Paulo", logradouro: "Praça da Sé",
#  uf: "SP", unidade: ""}

About

Viacepex is a simple wrapper around Viacep API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages