Method: Databasedotcom::Chatter::Conversation.mark_read
- Defined in:
- lib/databasedotcom/chatter/conversation.rb
.mark_read(client, cid) ⇒ Object
Find the Conversation identified by cid and mark it as read. Returns the updated Conversation.
Conversation.mark_read(@client, "fakeid")
39 40 41 42 43 |
# File 'lib/databasedotcom/chatter/conversation.rb', line 39 def self.mark_read(client, cid) url = "/services/data/v#{client.version}/chatter/users/me/conversations/#{cid}" response = client.http_patch(url, nil, :read => "true") Conversation.new(client, response.body) end |