Permalink
Browse files

fix example

  • Loading branch information...
1 parent c2d4e49 commit e704ff4e30523fda6d8031fe7409a0a3356e6b37 @matsumotory committed Dec 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/example.rb
View
@@ -7,7 +7,7 @@
tweet = "hello twitter world from mruby-oauht"
ex_headers = {'Content-Type' => 'application/x-www-form-urlencoded'}
twitter = OAuth.new(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
-response = twitter.post(API_URL, {:status => msg}, ex_headers)
+response = twitter.post(API_URL, {:status => tweet}, ex_headers)
if response.code.to_i == 200
puts "tweet success: #{msg}"

0 comments on commit e704ff4

Please sign in to comment.