Class: Platforms::Yammer::Api::Suggestions

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

Overview

Yammer’s suggestions for Users to follow

Author:

  • Benjamin Elias

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

#delete(suggestion_id, options = {}, headers = {}) ⇒ Faraday::Response

Decline a suggested user to follow

Parameters:

  • 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



23
24
25
# File 'lib/platforms/yammer/api/suggestions.rb', line 23

def delete suggestion_id, options={}, headers={}
  @connection.delete "suggestions/#{suggestion_id}.json", options, headers
end

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

Get suggested users to follow for the current user

Parameters:

  • 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



14
15
16
# File 'lib/platforms/yammer/api/suggestions.rb', line 14

def get options={}, headers={}
  @connection.get "suggestions.json", options, headers
end