Class: RTM::Auth::CheckToken

Inherits:
RTM::API show all
Defined in:
lib/rtmilk/api/auth.rb

Overview

GetToken

Instance Method Summary collapse

Methods inherited from RTM::API

#api_host, auth_host, get_auth_url, init, #invoke, key, #sign, token, token=

Constructor Details

#initialize(token) ⇒ CheckToken

Returns a new instance of CheckToken.



39
40
41
42
# File 'lib/rtmilk/api/auth.rb', line 39

def initialize(token)
   super 'rtm.auth.checkToken'
   @param = {:auth_token => token}
end

Instance Method Details

#parse_result(result) ⇒ Object

return :perms, :user => {id, name, fullname}



34
35
36
37
# File 'lib/rtmilk/api/auth.rb', line 34

def parse_result(result)
   super
   Auth.parse_result_auth(result)
end