Skip to content

Instantly share code, notes, and snippets.

@barce
Created June 26, 2015 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barce/26780e72cefe68e5a5b4 to your computer and use it in GitHub Desktop.
Save barce/26780e72cefe68e5a5b4 to your computer and use it in GitHub Desktop.
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