Permalink
Browse files

updated oauth example syntax

  • Loading branch information...
1 parent 9d8cd7a commit 0abfe33bfd735f0d136f36470b0c0d53bbe10490 @stve stve committed Sep 26, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 examples/oauth.rb
View
@@ -10,8 +10,12 @@
config.parser = :yajl
end
-TweetStream::Client.new.on_error do |message|
+client = TweetStream::Client.new
+
+client.on_error do |message|
puts message
-end.track("yankees") do |status|
+end
+
+client.track("yankees") do |status|
puts "#{status.text}"
end

0 comments on commit 0abfe33

Please sign in to comment.