Class: Flickr::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr_fu_ext.rb

Instance Method Summary collapse

Instance Method Details

#check_tokenObject



5
6
7
8
9
10
11
12
# File 'lib/flickr_fu_ext.rb', line 5

def check_token
  rsp = @flickr.send_request('flickr.auth.checkToken')
  if rsp[:stat] == 'ok'
    rsp
  else
    raise "#{rsp.err[:code]}: #{rsp.err[:msg]}"
  end
end