Method: Twitter::REST::Tweets#update!
- Defined in:
- lib/twitter/rest/tweets.rb
#update!(status, options = {}) ⇒ Twitter::Tweet
Note:
A status update with text identical to the authenticating user's current status will be ignored to prevent duplicates.
Updates the authenticating user's status
153 154 155 156 157 158 |
# File 'lib/twitter/rest/tweets.rb', line 153 def update!(status, = {}) hash = .dup hash[:in_reply_to_status_id] = hash.delete(:in_reply_to_status).id unless hash[:in_reply_to_status].nil? hash[:place_id] = hash.delete(:place).woeid unless hash[:place].nil? perform_post_with_object("/1.1/statuses/update.json", hash.merge(status: status), Twitter::Tweet) end |