Class: Platforms::Yammer::Api::Groups

Inherits:
Base
  • Object
show all
Defined in:
lib/platforms/yammer/api/groups.rb

Overview

Groups in Yammer

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Platforms::Yammer::Api::Base

Instance Method Details

#for_user(user_id, options = {}, headers = {}) ⇒ Faraday::Response

Get group memberships for a user

Parameters:

  • user_id (#to_s)

    The user to query for memberships

  • options (Hash) (defaults to: {})

    Options for the request

  • headers (Hash) (defaults to: {})

    Additional headers to send with the request

Returns:

  • (Faraday::Response)

    the API response

See Also:

Since:

  • 0.1.0



15
16
17
# File 'lib/platforms/yammer/api/groups.rb', line 15

def for_user user_id, options={}, headers={}
  @connection.get "groups/for_user/#{user_id}.json", options, headers
end