Module: Yammer::Api::Thread

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

Instance Method Summary collapse

Instance Method Details

#get_thread(id, opts = {}) ⇒ Yammer::Response

Examples:

Fetch data for the thread

Yammer.get_thread(42)

Parameters:

  • id (Integer)

    the thread ID

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

    the options to fetch a thread with

Options Hash (opts):

  • :newer_than (Integer)
  • :threaded (String)
  • :exclude_own_messages_from_unseen (Boolean)

Returns:

  • (Yammer::Response)

Raises:

See Also:

Rest API path:

  • /api/v1/threads/id

Rate Limited?:

  • Yes

Authentication:

  • Requires user context



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

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