Sha256: f78329f7dd283b8e13786d97f95c3b32c0ccd962236a82e62166c89c8340f452

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 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::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

2 entries across 2 versions & 1 rubygems

Version Path
yammer-client-0.1.4 lib/yammer/api/group_membership.rb
yammer-client-0.1.3 lib/yammer/api/group_membership.rb