Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ruby TweetStream Locations Feature not working
  2. TweetStream.configure do |config|
  3.   config.username    = 'USERNAME'
  4.   config.password    = 'PASSWORD'
  5.   config.auth_method = :basic
  6. end
  7.  
  8. TweetStream::Client.new.filter({:locations => '-80.29,32.57,-79.56,33.09', :track => ["Bob Loblaw"]}) do |tweet|
  9.   p tweet.inspect
  10. end
  11.        
  12. TweetStream::Client.new.filter({:track => ["Bob Loblaw"]}).locations('-80.29,32.57,-79.56,33.09') do |tweet|
  13.   p tweet.inspect
  14. end
  15.        
  16. TweetStream::Client.new.locations(-80.29,32.57,-79.56,33.09) do |tweet|
  17.   p tweet.inspect
  18. end