Created
June 26, 2015 00:31
-
-
Save barce/26780e72cefe68e5a5b4 to your computer and use it in GitHub Desktop.
This file contains 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
require 'rest_client' | |
require 'json' | |
# RestClient.log=STDOUT # Optionally turn on logging | |
q = '{ | |
"query" : { "term" : { "user" : "kimchy" } } | |
} | |
' | |
r = JSON.parse \ | |
RestClient.get( 'http://localhost:3000/twitter/tweet/search', | |
params: { source: q } ) | |
puts r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment