vendor/plugins/filtered_column_flickr_macro/lib/flickr.rb
# Takes a Flickr API method name and set of parameters; returns the correct URL for the REST API.
# If @email and @password are present, authentication information is included
Takes a Flickr API method name and set of parameters; returns the correct URL for the REST API.
If @email and @password are present, authentication information is included
Takes a Flickr API method name and set of parameters ; returns the correct URL for the REST API . If @email and @password are present authentication information is included
def request_url(method, *params)
    url = "#{@host}#{@api}/?api_key=#{@api_key}&method=flickr.#{method}"
    params[0][0].each_key do |key| url += "&#{key}=" + CGI::escape(params[0][0][key]) end if params[0][0]
    url += "&email=#{@email}&password=#{@password}" if @email and @password
    url
  end
def request_url ( method , * params ) url = "#{@host}#{@api}/?api_key=#{@api_key}&method=flickr.#{method}" params [ 0 ] [ 0 ] . each_key do | key | url += "&#{key}=" + CGI :: escape ( params [ 0 ] [ 0 ] [ key ] ) end if params [ 0 ] [ 0 ] url += "&email=#{@email}&password=#{@password}" if @email and @password url end
Takes a Flickr API method name and set of parameters; returns the correct URL for the REST API.
Takes a Flickr API method name and set of parameters ; returns the correct URL for the REST API .
method
<not_specific>
params
<not_specific>