Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {"errors"=>[{"message"=>"Bad Authentication data", "code"=>215}]}
- Twitter.configure do |config|
- config.consumer_key = 'key'
- config.consumer_secret = 'secret'
- config.oauth_token = 'token'
- config.oauth_token_secret = 'token-secret'
- end
- Twitter.configure do |config|
- config.consumer_key = consumer_key
- config.consumer_secret = consumer_secret
- config.oauth_token = oauth_token
- config.oauth_token_secret = oauth_token_secret
- end
- @twitter_search = Twitter.search(params[:search], :count => 10, :result_type => "recent")
- %ul
- = @twitter_search.results.map do |tweet| status.profile_image_url }
- %li
- .span2
- %img{:src => status.profile_image_url}
- #{status.screen_name}
- .span4
- #{status.text}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement