JSON response in groovy

Groovy is very nice when it comes to grabbing and parsing a JSON response. If there is no need to use a proxy, it is enough to:

def response = new JsonSlurper().parseText url.toURL().text

Result object contains for example:

Capture

As easy as that.

Advertisements

Twitter client

I have just started developing a twitter client.

Technologies used:

Spring boot

Groovy

Gradle

 

If anyone is interested please have a look here
https://bitbucket.org/marcincichocki/simple-twitter-client

For now, it is very simple application (grabs a random joke online and updates a twitter status) but will be improved. Main idea behind that is to create a sample app which incorporates spring boot, rest client and twitter integration.

Soon I might create a short tutorial.

 

References: 

http://www.icndb.com/api/

https://dev.twitter.com/rest/public