Sha256: 579e94c5dcfcc212c5d82bf6287e07fbfc08365ec7a12de109003759c17a8e44
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
module YammerApi module Api module Likes include Helper # Likes a specified message # # @format `:json` # @authenticated true # @rate_limited true # @param id [Integer] The ID of message. # @see http://developer.yammer.com/api/#likes def add_like(id, options={}) path = "/messages/liked_by/current.json" post(path, {:message_id => id}.to_json) end # Unlikes a specified message # # @format `:json` # @authenticated true # @rate_limited true # @param id [Integer] The ID of message. # @see http://developer.yammer.com/api/#likes def remove_like(id, options={}) path = "/messages/liked_by/current.json?message_id=#{id}" delete(path, options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yammer_api-0.1.0 | lib/yammer_api/api/likes.rb |