Module: Yammer::Api::Topic

Included in:
Client
Defined in:
lib/yammer/api/topic.rb

Instance Method Summary collapse

Instance Method Details

#get_topic(id, opts = {}) ⇒ Yammer::ApiResponse

Examples:

Fetch data for the thread

Yammer.get_topic(42, :is_followed_by => 2)

Parameters:

  • id (Integer)
  • opts (Hash) (defaults to: {})

    the options to fetch a thread with

Options Hash (opts):

  • :is_followed_by (Integer)

    include if specified user is following topic that is being fetched

Returns:

Raises:

See Also:

Rest API path:

  • /api/v1/topics

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



32
33
34
# File 'lib/yammer/api/topic.rb', line 32

def get_topic(id, opts={})
  get("/api/v1/topics/#{id}", opts)
end