Skip to content

Instantly share code, notes, and snippets.

@seratch
Created November 28, 2011 06:35
Show Gist options
  • Save seratch/1399369 to your computer and use it in GitHub Desktop.
Save seratch/1399369 to your computer and use it in GitHub Desktop.
lsync.groovy
@GrabResolver(name='seratch_github_com_releases', root='http://seratch.github.com/mvn-repo/releases', m2Compatible='true')
@Grab('com.github.seratch:httpilot:0.1')
import httpilot.*;
import java.util.*;
formParams = new HashMap<String, Object>();
formParams.put("user", "seratch");
formParams.put("repo", "scalikesolr");
formParams.put("version", "3.5.0");
req = new Request("http://ls.implicit.ly/api/1/libraries");
req.setFormParams(formParams);
response = HTTP.post(req);
println(response.getStatus());
println(response.getTextBody());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment