Class FlickRaw::Flickr::Photosets
In: lib/flickraw.rb
Parent: FlickRaw::Request

Methods

Classes and Modules

Class FlickRaw::Flickr::Photosets::Comments

Public Instance methods

flickr.photosets.addPhoto request.

Add a photo to the end of an existing photoset.

Arguments

photoset_id (required)
The id of the photoset to add a photo to.
photo_id (required)
The id of the photo to add to the set.

Error codes

  • 1: Photoset not found

    The photoset id passed was not the id of avalid photoset owned by the calling user.

  • 2: Photo not found

    The photo id passed was not the id of a valid photo owned by the calling user.

  • 3: Photo already in set

    The photo is already a member of the photoset.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def addPhoto(*args)
    @flickr.call 'flickr.photosets.addPhoto', *args
  end

comments()

Returns a Comments object.

flickr.photosets.create request.

Create a new photoset for the calling user.

Arguments

title (required)
A title for the photoset.
description
A description of the photoset. May contain limited html.
primary_photo_id (required)
The id of the photo to represent this set. The photo must belong to the calling user.

Error codes

  • 1: No title specified

    No title parameter was passed in the request.

  • 2: Photo not found

    The primary photo id passed was not a valid photo id or does not belong to the calling user.

  • 3: Can‘t create any more sets

    The user has reached their maximum number of photosets limit.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

Returns

 <photoset id="1234" url="http: //www.flickr.com/photos/bees/sets/1234/" />

[Source]


# Generated automatically from flickr api
  def create(*args)
    @flickr.call 'flickr.photosets.create', *args
  end

flickr.photosets.delete request.

Delete a photoset.

Arguments

photoset_id (required)
The id of the photoset to delete. It must be owned by the calling user.

Error codes

  • 1: Photoset not found

    The photoset id passed was not a valid photoset id or did not belong to the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def delete(*args)
    @flickr.call 'flickr.photosets.delete', *args
  end

flickr.photosets.editMeta request.

Modify the meta-data for a photoset.

Arguments

photoset_id (required)
The id of the photoset to modify.
title (required)
The new title for the photoset.
description
A description of the photoset. May contain limited html.

Error codes

  • 1: Photoset not found

    The photoset id passed was not a valid photoset id or did not belong to the calling user.

  • 2: No title specified

    No title parameter was passed in the request.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def editMeta(*args)
    @flickr.call 'flickr.photosets.editMeta', *args
  end

flickr.photosets.editPhotos request.

Modify the photos in a photoset. Use this method to add, remove and re-order photos.

Arguments

photoset_id (required)
The id of the photoset to modify. The photoset must belong to the calling user.
primary_photo_id (required)
The id of the photo to use as the ‘primary’ photo for the set. This id must also be passed along in photo_ids list argument.
photo_ids (required)
A comma-delimited list of photo ids to include in the set. They will appear in the set in the order sent. This list must contain the primary photo id. All photos must belong to the owner of the set. This list of photos replaces the existing list. Call flickr.photosets.addPhoto to append a photo to a set.

Error codes

  • 1: Photoset not found

    The photoset id passed was not a valid photoset id or did not belong to the calling user.

  • 2: Photo not found

    One or more of the photo ids passed was not a valid photo id or does not belong to the calling user.

  • 3: Primary photo not found

    The primary photo id passed was not a valid photo id or does not belong to the calling user.

  • 4: Primary photo not in list

    The primary photo id passed did not appear in the photo id list.

  • 5: Empty photos list

    No photo ids were passed.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def editPhotos(*args)
    @flickr.call 'flickr.photosets.editPhotos', *args
  end

flickr.photosets.getContext request.

Returns next and previous photos for a photo in a set.

Arguments

photo_id (required)
The id of the photo to fetch the context for.
photoset_id (required)
The id of the photoset for which to fetch the photo‘s context.

Error codes

  • 1: Photo not found

    The photo id passed was not a valid photo id, or was the id of a photo that the calling user does not have permission to view.

  • 2: Photo not in set

    The specified photo is not in the specified set.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

Returns

 <prevphoto id="2980" secret="973da1e709"
        title="boo!" url="/photos/bees/2980/" />
 <nextphoto id="2985" secret="059b664012"
        title="Amsterdam Amstel" url="/photos/bees/2985/" />

[Source]


# Generated automatically from flickr api
  def getContext(*args)
    @flickr.call 'flickr.photosets.getContext', *args
  end

flickr.photosets.getInfo request.

Gets information about a photoset.

Arguments

photoset_id (required)
The ID of the photoset to fetch information for.

Error codes

  • 1: Photoset not found

    The photoset id was not valid.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

Returns

 <photoset id="46" owner="12037949754@N01" primary="2541" photos="4">
        <title>my title</title>
        <description>my description</description>
 </photoset>

[Source]


# Generated automatically from flickr api
  def getInfo(*args)
    @flickr.call 'flickr.photosets.getInfo', *args
  end

flickr.photosets.getList request.

Returns the photosets belonging to the specified user.

Arguments

user_id
The NSID of the user to get a photoset list for. If none is specified, the calling user is assumed.

Error codes

  • 1: User not found

    The user NSID passed was not a valid user NSID and the calling user was not logged in.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

Returns

 <photosets cancreate="1">
        <photoset id="5" primary="2483" secret="abcdef"
                server="8" photos="4" farm="1">
                <title>Test</title>
                <description>foo</description>
        </photoset>
        <photoset id="4" primary="1234" secret="832659"
                server="3" photos="12" farm="1">
                <title>My Set</title>
                <description>bar</description>
        </photoset>
 </photosets>

[Source]


# Generated automatically from flickr api
  def getList(*args)
    @flickr.call 'flickr.photosets.getList', *args
  end

flickr.photosets.getPhotos request.

Get the list of photos in a set.

Arguments

photoset_id (required)
The id of the photoset to return the photos for.
extras
A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are: license, date_upload, date_taken, owner_name, icon_server, original_format, last_update.
privacy_filter
Return photos only matching a certain privacy level. This only applies when making an authenticated call to view a photoset you own. Valid values are:

<ul> <li>1 public photos</li> <li>2 private photos visible to friends</li> <li>3 private photos visible to family</li> <li>4 private photos visible to friends & family</li> <li>5 completely private photos</li> </ul>

per_page
Number of photos to return per page. If this argument is omitted, it defaults to 500. The maximum allowed value is 500.
page
The page of results to return. If this argument is omitted, it defaults to 1.
media
Filter results by media type. Possible values are all (default), photos or videos

Error codes

  • 1: Photoset not found

    The photoset id passed was not a valid photoset id.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

Returns

 <photoset id="4" primary="2483" page="1" per_page="500" pages="1" total="2">
        <photo id="2484" secret="123456" server="1"
                title="my photo" isprimary="0" />
        <photo id="2483" secret="123456" server="1"
                title="flickr rocks" isprimary="1" />
 </photoset>

[Source]


# Generated automatically from flickr api
  def getPhotos(*args)
    @flickr.call 'flickr.photosets.getPhotos', *args
  end

flickr.photosets.orderSets request.

Set the order of photosets for the calling user.

Arguments

photoset_ids (required)
A comma delimited list of photoset IDs, ordered with the set to show first, first in the list. Any set IDs not given in the list will be set to appear at the end of the list, ordered by their IDs.

Error codes

  • 1: Set not found

    One of the photoset ids passed was not the id of a valid photoset belonging to the calling user.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def orderSets(*args)
    @flickr.call 'flickr.photosets.orderSets', *args
  end

flickr.photosets.removePhoto request.

Remove a photo from a photoset.

Arguments

photoset_id (required)
The id of the photoset to remove a photo from.
photo_id (required)
The id of the photo to remove from the set.

Error codes

  • 1: Photoset not found

    The photoset id passed was not the id of avalid photoset owned by the calling user.

  • 2: Photo not found

    The photo id passed was not the id of a valid photo belonging to the calling user.

  • 3: Photo not in set

    The photo is not a member of the photoset.

  • 96: Invalid signature

    The passed signature was invalid.

  • 97: Missing signature

    The call required signing but no signature was sent.

  • 98: Login failed \/ Invalid auth token

    The login details or auth token passed were invalid.

  • 99: User not logged in \/ Insufficient permissions

    The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.

  • 100: Invalid API Key

    The API key passed was not valid or has expired.

  • 105: Service currently unavailable

    The requested service is temporarily unavailable.

  • 111: Format "xxx" not found

    The requested response format was not found.

  • 112: Method "xxx" not found

    The requested method was not found.

  • 114: Invalid SOAP envelope

    The SOAP envelope send in the request could not be parsed.

  • 115: Invalid XML-RPC Method Call

    The XML-RPC request document could not be parsed.

[Source]


# Generated automatically from flickr api
  def removePhoto(*args)
    @flickr.call 'flickr.photosets.removePhoto', *args
  end

[Validate]