Permalink
Browse files

Update README.md

  • Loading branch information...
matsumotory committed Dec 31, 2012
1 parent 6f54551 commit 7cf4104334e9847d1cc407490009aefb8e3e7200
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -27,12 +27,12 @@ API_URL = 'http://api.twitter.com/1.1/statuses/update.json'
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}"
+ puts "tweet success: #{tweet}"
else
- puts "tweet failed: #{msg}: bellow response"
+ puts "tweet failed: #{tweet}: bellow response"
p response
end
```

0 comments on commit 7cf4104

Please sign in to comment.