Groovy web console

subscribe to the feed Subscribe
to this
site
busca-cep (via #groovywebconsole)
tweet this snippet Tweet
this
script

busca-cep

Published 2 months ago by Fabito
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
@Grapes([@Grab('com.github.fabito:busca-cep-java-client:1.7')])  

import org.talesolutions.cep.CEPService 
import org.talesolutions.cep.CEPServiceFactory  

def buscaCEP = CEPServiceFactory.getCEPService() 
def cep = buscaCEP.obtemPorNumeroCEP("13084440")  
println cep