Class: Disqussion::Trends

Inherits:
Client
  • Object
show all
Defined in:
lib/disqussion/client/trends.rb

Instance Method Summary collapse

Methods included from Request

#get, #post

Instance Method Details

#listTreads(*args) ⇒ Hashie::Rash

Returns a list of trending threads. @accessibility: public key, secret key @methods: GET @format: json, jsonp, rss @authenticated: false @limited: false @see: http://disqus.com/api/3.0/trends/listTreads.json

Examples:

Returns a list of trending threads

Disqussion::Client.trends.listTreads()

Parameters:

  • forum (String)

    Forum ID (aka short name).

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Returns list of trending threads.



18
19
20
21
# File 'lib/disqussion/client/trends.rb', line 18

def listTreads(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  response = get('trends/listTreads', options)
end