Hi Guys, I am a newbie and I am trying to get ROR Flickr example working.... I installed the flickr gem and after that I did the necessary work as stated and here is the outcome - http://www.pilotoutlook.com/flickr My controller looks like - require ''flickr'' class FlickrController < ApplicationController def search flickr_obj_in_use = Flickr.new(''MY KEY HERE'') render :partial => "photo", :collection => flickr_obj_in_use.photos(:tags => params[:tags], :per_page => ''24'') end end It gives a message "Invalid API Key (Key has expired)". What am I doing wrong here? Any help will be greatly appreciated. Rajat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
chonsean-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Nov-29 21:36 UTC
Re: Flickr API not working
Have you checked the status of your API key with flickr? Maybe you need to renew your key. On Nov 29, 12:14 pm, Rajat Garg <raja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Guys, > > I am a newbie and I am trying to get ROR Flickr example working.... > > I installed the flickr gem and after that I did the necessary work as > stated and here is the outcome - > > http://www.pilotoutlook.com/flickr > > My controller looks like - > > require ''flickr'' > class FlickrController < ApplicationController > > def search > > flickr_obj_in_use = Flickr.new(''MY KEY HERE'') > > render :partial => "photo", :collection => > flickr_obj_in_use.photos(:tags => params[:tags], :per_page => > ''24'') > end > end > > It gives a message "Invalid API Key (Key has expired)". What am I > doing wrong here? > > Any help will be greatly appreciated. > > Rajat--~--~---------~--~----~------------~-------~--~----~ 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 just got the key 2-3 days back. I will try to get another key On Nov 29, 1:36 pm, "chons...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <chons...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Have you checked the status of your API key with flickr? Maybe you > need to renew your key. > > On Nov 29, 12:14 pm,RajatGarg <raja...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi Guys, > > > I am a newbie and I am trying to get ROR Flickr example working.... > > > I installed the flickr gem and after that I did the necessary work as > > stated and here is the outcome - > > >http://www.pilotoutlook.com/flickr > > > My controller looks like - > > > require ''flickr'' > > class FlickrController < ApplicationController > > > def search > > > flickr_obj_in_use = Flickr.new(''MY KEY HERE'') > > > render :partial => "photo", :collection => > > flickr_obj_in_use.photos(:tags => params[:tags], :per_page => > > ''24'') > > end > > end > > > It gives a message "Invalid API Key (Key has expired)". What am I > > doing wrong here? > > > Any help will be greatly appreciated. > > >Rajat--~--~---------~--~----~------------~-------~--~----~ 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 got a new key and it still is giving the same issue. Also, when I ping - flickr api usage statistics show the ping, however, it doesn''t allow it to get data from it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Nov 30, 2007 4:22 PM, Rajat Garg <rajat79-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I got a new key and it still is giving the same issue. Also, when I > ping - flickr api usage statistics show the ping, however, it doesn''t > allow it to get data from it. >There''s a problem with the flickr gem, it sends the default (expired) API key instead of the one you assign it. There''s an updated version of flickr.rb mentioned in the comments on this page http://wonko.com/article/452 but that seems to have problems of it''s own, so I fixed those and my updated code is here : http://pastie.caboo.se/123850 , which seems to work for me so far, although this gem is quite out of date now and doesn''t feature some of the newer aspects of the flickr API. Hope that helps, Barry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---