Class: Flickry::Flickr
Instance Method Summary collapse
- #authorize(args = {}) ⇒ Object
-
#initialize ⇒ Flickr
constructor
:nodoc:.
Constructor Details
Instance Method Details
#authorize(args = {}) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/flickry.rb', line 36 def (args={}) full_args = {:api_key => Flickry.api_key, :perms => 'read'} args.each {|k, v| full_args[k.to_sym] = v } full_args[:api_sig] = Flickry.api_sig(full_args) if Flickry.shared_secret url = 'http://' + Flickry::FLICKR_HOST + Flickry::AUTH_PATH + full_args.collect { |a, v| "#{a}=#{v}" }.join('&') puts url self.class.get(url) end |