Created
March 4, 2014 17:35
-
-
Save JesterMan/9351545 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)