Skip to content

Instantly share code, notes, and snippets.

@JesterMan
Created March 4, 2014 17:35
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 JesterMan/9351545 to your computer and use it in GitHub Desktop.
Save JesterMan/9351545 to your computer and use it in GitHub Desktop.
class ApiController < ApplicationController
def retrieveTweets
binding.pry
client = Twitter::REST::Client.new do |config|
config.consumer_key = "B3Rtidn2BG8dAqt5LDe54w"
config.consumer_secret = "Pn2GGbY4VrERWBUxFPFUoucK4HFv1azHHd62eCuqAU"
config.access_token = "28819560-rA0JdogFbLn6vHc73Xd6LpAtRatAnUfSQt7N33uL0"
config.access_token_secret = "XckW2zwkPlIpKpNjWxQoPVdgcfccVAWiFEJG0jRgKdnST"
client.search("#stanford").first.text
end
end
@JesterMan
Copy link
Author

class ApiController < ApplicationController
def retrieveTweets
client = Twitter::REST::Client.new do |config|
config.consumer_key = "B3Rtidn2BG8dAqt5LDe54w"
config.consumer_secret = "Pn2GGbY4VrERWBUxFPFUoucK4HFv1azHHd62eCuqAU"
config.access_token = "28819560-rA0JdogFbLn6vHc73Xd6LpAtRatAnUfSQt7N33uL0"
config.access_token_secret = "XckW2zwkPlIpKpNjWxQoPVdgcfccVAWiFEJG0jRgKdnST"
end
end
end

gives no errors (but also, no display)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment