Class: Platforms::Yammer::Api::OpenGraphObjects

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

Overview

Open Graph Objects in Yammer

This is read-only through the API.

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

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

Get open graph obects URL is actually a required parameter so require that when calling this function.

Parameters:

  • url (#to_s)

    URL of the OG item to get

  • 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



20
21
22
23
# File 'lib/platforms/yammer/api/open_graph_objects.rb', line 20

def get url, options={}, headers={}
  params = options.merge({url: url})
  @connection.get 'open_graph_objects.json', params, headers
end