Class: Disqussion::Imports

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

Instance Method Summary collapse

Methods included from Request

#get, #post

Instance Method Details

#details(*args) ⇒ Hashie::Rash

@accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/imports/details.json

Examples:

Disqussion::Client.imports.details(987)

Parameters:

  • group (Integer)

    group ID

Returns:

  • (Hashie::Rash)

    Details on the requested import.



14
15
16
17
18
# File 'lib/disqussion/client/imports.rb', line 14

def details(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options[:group] = args.first
  response = get('imports/details', options)
end

#list(*args) ⇒ Hashie::Rash

Returns list of previous imports. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: true @limited: false @see: http://disqus.com/api/3.0/imports/list.json

Examples:

Disqussion::Client.imports.list("the88")

Parameters:

  • forum (String)

    Allows multiple. Looks up a forum by ID (aka short name).

  • options (Hash)

    A customizable set of options.

Returns:

  • (Hashie::Rash)

    Details on the requested category.



33
34
35
36
37
# File 'lib/disqussion/client/imports.rb', line 33

def list(*args)
  options = args.last.is_a?(Hash) ? args.pop : {}
  options[:forum] = args.first
  response = get('imports/list', options)
end