Last active
October 26, 2016 23:17
-
-
Save jwagenleitner/f07dc306c7798a3fe9ef to your computer and use it in GitHub Desktop.
Using groovy-wslite SNAPSHOT from the Groovy Console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GrabResolver(name='groovy-wslite', root='https://oss.sonatype.org/content/groups/public', m2Compatible=true) | |
@Grab(group='com.github.groovy-wslite', module='groovy-wslite', version='2.0.0-SNAPSHOT', changing=true) | |
import wslite.rest.* | |
RESTClient github = new RESTClient('https://api.github.com/') | |
def response = github.get(path: 'users/jwagenleitner') | |
assert 'jwagenleitner' == response.json.login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Oct 26 16:17:12 PDT 2016 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment