Sha256: ae54f459b0e9bdbb25274b678da48bdeccc1f190183a45e7327c03b06276f8e0
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
module Yammer module Api module GroupMembership # @see https://developer.yammer.com/restapi/#rest-groups # @api_path /api/v1/group_memberships/id # @rate_limited Yes # @authentication Requires user context # @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @return [Yammer::Response] # @param id [Integer] the group membership ID # @example Fetch data for the thread # Yammer.get_group_membership(7) def get_group_membership(id) get("/api/v1/group_memberships/#{id}") end # @see https://developer.yammer.com/restapi/#rest-groups # @api_path /api/v1/group_memberships # @rate_limited Yes # @authentication Requires user context # @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @return [Yammer::Response] # @param id [Integer] the group ID # @example Fetch data for the thread # Yammer.create_group_membership(74) def create_group_membership(id) post("/api/v1/group_memberships", :group_id => id) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yammer-client-0.1.2 | lib/yammer/api/group_membership.rb |
yammer-client-0.1.1 | lib/yammer/api/group_membership.rb |
yammer-client-0.1.0 | lib/yammer/api/group_membership.rb |