Sha256: 0246f3d9a9548be7b3eed5742fcedd8005bfda16a5eaf38888497ff7ffbce68d

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

module Yammer
  module Api
    module GroupMembership

      # @see https://developer.yammer.com/restapi/#rest-group_memberships
      # @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::ApiResponse]
      # @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::ApiResponse]
      # @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

4 entries across 4 versions & 1 rubygems

Version Path
yammer-client-0.1.8 lib/yammer/api/group_membership.rb
yammer-client-0.1.7 lib/yammer/api/group_membership.rb
yammer-client-0.1.6 lib/yammer/api/group_membership.rb
yammer-client-0.1.5 lib/yammer/api/group_membership.rb