Skip to content

Commit

Permalink
updated oauth example syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
stve committed Sep 26, 2011
1 parent 9d8cd7a commit 0abfe33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/oauth.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
config.parser = :yajl config.parser = :yajl
end end


TweetStream::Client.new.on_error do |message| client = TweetStream::Client.new

client.on_error do |message|
puts message puts message
end.track("yankees") do |status| end

client.track("yankees") do |status|
puts "#{status.text}" puts "#{status.text}"
end end

0 comments on commit 0abfe33

Please sign in to comment.