Module: YammerApi::Api::Likes
Instance Method Summary collapse
-
#add_like(id, options = {}) ⇒ Object
Likes a specified message.
-
#remove_like(id, options = {}) ⇒ Object
Unlikes a specified message.
Methods included from Helper
Instance Method Details
#add_like(id, options = {}) ⇒ Object
Likes a specified message
14 15 16 17 |
# File 'lib/yammer_api/api/likes.rb', line 14 def add_like(id, ={}) path = "/messages/liked_by/current.json" post(path, {:message_id => id}.to_json) end |
#remove_like(id, options = {}) ⇒ Object
Unlikes a specified message
26 27 28 29 |
# File 'lib/yammer_api/api/likes.rb', line 26 def remove_like(id, ={}) path = "/messages/liked_by/current.json?message_id=#{id}" delete(path, ) end |