Skip to content

Instantly share code, notes, and snippets.

@NatashaTheRobot
Created June 20, 2012 21:21
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 NatashaTheRobot/2962306 to your computer and use it in GitHub Desktop.
Save NatashaTheRobot/2962306 to your computer and use it in GitHub Desktop.
Twitter API Example
#https://dev.twitter.com/docs/api/1/get/search
require 'Typhoeus'
require 'JSON'
url = 'http://api.twitter.com/search.json?q=dev+bootcamp&rpp=5&include_entities=true&result_type=mixed'
response = Typhoeus::Request.get(url)
p all_tweets = JSON.parse(response.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment