lib/flickr/photos.rb in commonthread-flickr_fu-0.2.0 vs lib/flickr/photos.rb in commonthread-flickr_fu-0.2.1

- old
+ new

@@ -109,10 +109,12 @@ # we return only photos added in the last 12 hours (though we may extend the limit in the future). # * per_page (Optional) # Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. # * page (Optional) # The page of results to return. If this argument is omitted, it defaults to 1. + # * media (Optional) + # The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default. # def search(options) options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media"}) rsp = @flickr.send_request('flickr.photos.search', options) @@ -141,9 +143,11 @@ # == Options # * per_page (Optional) # Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500. # * page (Optional) # The page of results to return. If this argument is omitted, it defaults to 1. + # * media (Optional) + # The type of media to search for. 'photo', 'video', or 'both' are allowed arguments, with 'both' being the default. # def get_recent(options) options.merge!({:extras => "license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media"}) rsp = @flickr.send_request('flickr.photos.getRecent', options)