Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

the code example has a bug. When making a POST request (using the post(...) method), the options should have a :body parameter, not the :query parameter. The :query parameter is only good for GET requests (that use the get(...) method) 
  • Loading branch information...
commit 35e4339d3c7171026585dd1d22540bc48e896ae8 1 parent 9c08f47
@kamrandotpk kamrandotpk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -41,7 +41,7 @@ class Twitter
end
def post(text)
- options = { :query => {:status => text}, :basic_auth => @auth }
+ options = { :body => {:status => text}, :basic_auth => @auth }
self.class.post('/statuses/update.json', options)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.