class Platforms::Yammer::Api::Relationships

Relationships in Yammer @todo confirm documentation, which currently (2020-03-25) is confused around parameters and mentions updating relationships as part of a GET request

@author Benjamin Elias @since 0.1.0

Public Instance Methods

get(options={}) click to toggle source

Get relationships @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/relationshipsjson

# File lib/platforms/yammer/api/relationships.rb, line 18
def get options={}, headers={}
  @connection.get 'relationships.json', options, headers
end
post(options={}) click to toggle source

Update relationships

It is unclear how exactly this works with subordinates, and “all three can be passed in one request”.

@param options [Hash] Options for the request body @param headers [Hash] Additional headers to send with the request @return [Faraday::Response] the API response @see developer.yammer.com/docs/relationshipsjson-1

# File lib/platforms/yammer/api/relationships.rb, line 32
def post options={}, headers={}
  @connection.post 'relationships.json', options, headers
end