I have gone through the rflickr README, and it says to get the token.
I have struck-up here with getting auth.token.
My script looks:
-----------------------------------------------------------------------------------------------
require ''flickr''
FLICKR_KEY = ''f8ecb4b6ef8c94934034e04c79d645db''
FLICKR_SECRET = ''daa2d9158df1458c''
FLICKR_CACHE = "#{RAILS_ROOT}/config/flickr.cache"
flickr = Flickr.new(FLICKR_CACHE, FLICKR_KEY, FLICKR_SECRET)
unless flickr.auth.token
frob = flickr.auth.getFrob
puts "#{frob}"
link = flickr.auth.login_link
puts
puts link
puts
puts "copy and paste the above url into your browser then hit enter
after viewing the page"
gets
flickr.auth.getToken(frob)
flickr.auth.cache_token
end
-----------------------------------------------------------------------------------------------
My code is breaking ...
ERR: Invalid auth token (98)
/usr/lib/ruby/1.8/xmlrpc/client.rb:414:in `call'': Invalid auth token
(XMLRPC::FaultException)
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
base.rb:153:in `call_unauth_method''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
auth.rb:72:in `checkToken''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
auth.rb:47:in `load_token''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
auth.rb:19:in `initialize''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
base.rb:124:in `new''
from /usr/lib/ruby/gems/1.8/gems/flickers-2006.02.01/lib/
flickr/base.rb:124:in `auth''
from script/authorize_flickr.rb:20
Any help will be appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I have gone through the rflickr README, and it says to get the token.
I have struck-up here with getting auth.token.
My script looks:
-----------------------------------------------------------------------------------------------
require ''flickr''
FLICKR_KEY = ''XXXXXXXXXXXXXXXXXX''
FLICKR_SECRET = ''XXXXXX''
FLICKR_CACHE = "#{RAILS_ROOT}/config/flickr.cache"
flickr = Flickr.new(FLICKR_CACHE, FLICKR_KEY, FLICKR_SECRET)
unless flickr.auth.token
frob = flickr.auth.getFrob
puts "#{frob}"
link = flickr.auth.login_link
puts
puts link
puts
puts "copy and paste the above url into your browser then hit enter
after viewing the page"
gets
flickr.auth.getToken(frob)
flickr.auth.cache_token
end
-----------------------------------------------------------------------------------------------
My code is breaking ...
ERR: Invalid auth token (98)
/usr/lib/ruby/1.8/xmlrpc/client.rb:414:in `call'': Invalid auth token
(XMLRPC::FaultException)
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/
flickr/
base.rb:153:in `call_unauth_method''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/
flickr/
auth.rb:72:in `checkToken''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/
flickr/
auth.rb:47:in `load_token''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/
flickr/
auth.rb:19:in `initialize''
from /usr/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/
flickr/
base.rb:124:in `new''
from /usr/lib/ruby/gems/1.8/gems/flickers-2006.02.01/lib/
flickr/base.rb:124:in `auth''
from script/authorize_flickr.rb:20
Any help will be appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
I have gone through the rflickr README, and it says to get the token.
I have struck-up here with getting auth.token.
My script looks:
-----------------------------------------------------------------------------------------------
require ''flickr''
FLICKR_KEY = ''XXXXXXXXXXXXXXXXXXXXX''
FLICKR_SECRET = ''XXXXXXXXX''
FLICKR_CACHE = "#{RAILS_ROOT}/config/flickr.cache"
flickr = Flickr.new(FLICKR_CACHE, FLICKR_KEY, FLICKR_SECRET)
unless flickr.auth.token
frob = flickr.auth.getFrob
puts "#{frob}"
link = flickr.auth.login_link
puts
puts link
puts
puts "copy and paste the above url into your browser then hit enter
after viewing the page"
gets
flickr.auth.getToken(frob)
flickr.auth.cache_token
end
-----------------------------------------------------------------------------------------------
My code is breaking ...
ERR: Invalid frob (108)
/usr/local/lib/ruby/1.8/xmlrpc/client.rb:414:in `call'': Invalid frob
(XMLRPC::FaultException)
from /usr/local/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
base.rb:153:in `call_unauth_method''
from /usr/local/lib/ruby/gems/1.8/gems/rflickr-2006.02.01/lib/flickr/
auth.rb:52:in `getToken''
from flickr2.rb:27
Any help will be appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---