class Flickr::Api::Photo
Public Instance Methods
@param photo_id [String] @return [response] @docs [flickr.photos.delete](www.flickr.com/services/api/flickr.photos.delete.html)
# File lib/flickr/api/photo.rb, line 159 def delete(photo_id, params = {}) post "photos.delete", params.merge(photo_id: photo_id) end
@param photo_id [String] @return [Flickr::Object::Photo] @docs [flickr.photos.getExif](www.flickr.com/services/api/flickr.photos.getInfo.html)
# File lib/flickr/api/photo.rb, line 139 def get_exif(photo_id, params = {}) response = get "photos.getExif", params.merge(photo_id: photo_id) new_object(:Photo, response["photo"]) end
@param photo_id [String] @return [Flickr::Object::List<Flickr::Object::Person>] @docs [flickr.photos.getFavorites](www.flickr.com/services/api/flickr.photos.getFavorites.html)
# File lib/flickr/api/photo.rb, line 149 def get_favorites(photo_id, params = {}) response = get "photos.getFavorites", params.merge(photo_id: photo_id) new_list(:Person, response["photo"]["person"], response["photo"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getContactsPhotos](www.flickr.com/services/api/flickr.photos.getContactsPhotos.html)
# File lib/flickr/api/photo.rb, line 25 def get_from_contacts(params = {}) response = get "photos.getContactsPhotos", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param photo_id [String] @return [Flickr::Object::Photo] @docs [flickr.photos.getInfo](www.flickr.com/services/api/flickr.photos.getInfo.html)
# File lib/flickr/api/photo.rb, line 119 def get_info(photo_id, params = {}) response = get "photos.getInfo", params.merge(photo_id: photo_id) new_object(:Photo, response["photo"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.interestingness.getList](www.flickr.com/services/api/flickr.interestingness.getList.html)
# File lib/flickr/api/photo.rb, line 61 def get_interesting(params = {}) response = get "interestingness.getList", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getNotInSet](www.flickr.com/services/api/flickr.photos.getNotInSet.html)
# File lib/flickr/api/photo.rb, line 37 def get_not_in_set(params = {}) response = get "photos.getNotInSet", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getRecent](www.flickr.com/services/api/flickr.photos.getRecent.html)
# File lib/flickr/api/photo.rb, line 49 def get_recent(params = {}) response = get "photos.getRecent", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.RecentlyUpdated](www.flickr.com/services/api/flickr.photos.RecentlyUpdated.html)
# File lib/flickr/api/photo.rb, line 109 def get_recently_updated(params = {}) response = get "photos.recentlyUpdated", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param photo_id [String] @return [Flickr::Object::Photo] @docs [flickr.photos.getSizes](www.flickr.com/services/api/flickr.photos.getInfo.html)
# File lib/flickr/api/photo.rb, line 129 def get_sizes(photo_id, params = {}) response = get "photos.getSizes", params.merge(photo_id: photo_id) new_object(:Photo, response) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getUntagged](www.flickr.com/services/api/flickr.photos.getUntagged.html)
# File lib/flickr/api/photo.rb, line 73 def get_untagged(params = {}) response = get "photos.getUntagged", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getWithGeoData](www.flickr.com/services/api/flickr.photos.getWithGeoData.html)
# File lib/flickr/api/photo.rb, line 85 def get_with_geo_data(params = {}) response = get "photos.getWithGeoData", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.getWithoutGeoData](www.flickr.com/services/api/flickr.photos.getWithoutGeoData.html)
# File lib/flickr/api/photo.rb, line 97 def get_without_geo_data(params = {}) response = get "photos.getWithoutGeoData", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param photo_id [String] @param tag_id [String] @return [response] @docs [flickr.photos.removeTag](www.flickr.com/services/api/flickr.photos.removeTag.html)
# File lib/flickr/api/photo.rb, line 199 def remove_tag(photo_id, tag_id, params = {}) post "photos.removeTag", params.merge(photo_id: photo_id, tag_id: tag_id) end
@param params [Hash] See documentation below @option params [Boolean, Array<String>] :sizes For all sizes use ‘true`, for specific ones
chuck them into an array (e.g. `["Square 75", "Medium 500"]`).
@return [Flickr::Object::List<Flickr::Object::Photo>] @docs [flickr.photos.search](www.flickr.com/services/api/flickr.photos.search.html)
# File lib/flickr/api/photo.rb, line 13 def search(params = {}) response = get "photos.search", params new_list(:Photo, response["photos"]["photo"], response["photos"]) end
@param photo_id [String] @param content_type [String] @return [response] @docs [flickr.photos.setContentType](www.flickr.com/services/api/flickr.photos.setContentType.html)
# File lib/flickr/api/photo.rb, line 169 def set_content_type(photo_id, content_type, params = {}) post "photos.setContentType", params.merge(photo_id: photo_id, content_type: content_type) end
@param photo_id [String] @param params [Hash] See documentation below @return [response] @docs [flickr.photos.setDates](www.flickr.com/services/api/flickr.photos.setDates.html)
# File lib/flickr/api/photo.rb, line 209 def set_dates(photo_id, params = {}) post "photos.setDates", params.merge(photo_id: photo_id) end
@param params [Hash] See documentation below @return [response] @docs [flickr.photos.licenses.setLicense](www.flickr.com/services/api/flickr.photos.licenses.setLicense.html)
# File lib/flickr/api/photo.rb, line 248 def set_license(photo_id, license_id, params = {}) post "photos.licenses.setLicense", params.merge(photo_id: photo_id, license_id: license_id) end
@param photo_id [String] @param params [Hash] See documentation below @return [response] @docs [flickr.photos.setMeta](www.flickr.com/services/api/flickr.photos.setMeta.html)
# File lib/flickr/api/photo.rb, line 219 def set_meta(photo_id, params = {}) post "photos.setMeta", params.merge(photo_id: photo_id) end
@param photo_id [String] @param params [Hash] See documentation below @return [response] @docs [flickr.photos.setPerms](www.flickr.com/services/api/flickr.photos.setPerms.html)
# File lib/flickr/api/photo.rb, line 229 def set_permissions(photo_id, params = {}) post "photos.setPerms", params.merge(photo_id: photo_id) end
@param photo_id [String] @param params [Hash] See documentation below @return [response] @docs [flickr.photos.setSafetyLevel](www.flickr.com/services/api/flickr.photos.setSafetyLevel.html)
# File lib/flickr/api/photo.rb, line 239 def set_safety_level(photo_id, params = {}) post "photos.setSafetyLevel", params.merge(photo_id: photo_id) end