Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit 7cf4104334e9847d1cc407490009aefb8e3e7200 1 parent 6f54551
@matsumoto-r authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -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
```
Please sign in to comment.
Something went wrong with that request. Please try again.