Class: Viddlereo::Session

Inherits:
Resource show all
Defined in:
lib/viddlereo/session.rb

Constant Summary

Constants inherited from Resource

Resource::BASE_URI

Class Method Summary collapse

Methods inherited from Resource

auth_required, auth_required?, client, default_options, get, inherited, #initialize, param, params, #params, post, resource_name, uri

Constructor Details

This class inherits a constructor from Viddlereo::Resource

Class Method Details

.auth(get_token = false) ⇒ Object



9
10
11
12
13
14
# File 'lib/viddlereo/session.rb', line 9

def self.auth(get_token = false)
  parse(get(:method => "auth",
    :user             => Viddlereo.user,
    :password         => Viddlereo.password,
    :get_record_token => get_token ? 1 : 0))
end