intelipost
Gem for the Intelipost API
Usage:
require 'intelipost'
client = Intelipost::Client.new api_key: <your api key>
address = client.cep.address_complete '05307000'
# => #<Hashie::Mash content=#<Hashie::Mash bairro="Vila Ribeiro de Barros" city="São Paulo" ibge="3550308" neighborhood="Vila Ribeiro de Barros" state="São Paulo" state_short="SP" street="R Maj Paladino"> messages=[] status="OK" time="0.6 ms">
address.content.street
# => "R Maj Paladino"
Development:
For testing, create a .env file with the following content:
INTELIPOST_API_KEY=<YOUR API KEY>