class Platforms::Yammer::Api::Groups

Groups in Yammer @author Benjamin Elias @since 0.1.0

Public Instance Methods

for_user(user_id, options={}) click to toggle source

Get group memberships for a user @param user_id [#to_s] The user to query for memberships @param options [Hash] Options for the request @param headers [Hash] Additional headers to send with the request @return [Faraday::Response] the API response @see developer.yammer.com/docs/groupsfor_useruser_idjson

# 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