Class: Disqussion::Applications

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

Instance Method Summary collapse

Methods included from Request

#get, #post

Instance Method Details

#listUsage(*args) ⇒ Hashie::Rash

Returns the API usage per day for this application. @accessibility: public key, secret key @methods: GET @format: json, jsonp @authenticated: true @limited: false

Examples:

Returns the API usage per day for this application.

Disqussion::Client.applications.listUsage

Parameters:

  • application (Integer)

    Defaults to null

  • days (Integer)

    Defaults to 30, Maximum length of 30

Returns:

  • (Hashie::Rash)

    API usage per day for this application.

See Also:



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

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