PhotoSets

Kind of class:public class
Package:com.adobe.webapis.flickr.methodgroups
Inherits from:none
Classpath:com.adobe.webapis.flickr.methodgroups.PhotoSets
File last modified:Monday, 03 July 2006, 15:44:34
Contains the methods for the PhotoSets method group in the Flickr API. Even though the events are listed here, they're really broadcast from the FlickrService instance itself to make using the service easier.

Summary


Constructor
Instance properties
Instance methods
  • addPhoto (photoset_id:String, photo_id:String) : void
    • Add a photo to the end of an existing photoset.
  • addPhoto_result (event:Event) : void
    • Capture the result of the addPhoto call, and dispatch
  • create (title:String, description:String, primary_photo_id:String) : void
    • Create a new photoset for the calling user.
  • create_result (event:Event) : void
    • Capture the result of the create call, and dispatch
  • deleteSet (photoset_id:String) : void
    • Delete a photoset.
  • delete_result (event:Event) : void
    • Capture the result of the delete call, and dispatch
  • editMeta (photoset_id:String, title:String, description:String = "") : void
    • Modify the meta-data for a photoset.
  • editMeta_result (event:Event) : void
    • Capture the result of the editMeta call, and dispatch
  • editPhotos (photoset_id:String, primary_photo_id:String, photo_ids:Array) : void
    • Modify the photos in a photoset.
  • editPhotos_result (event:Event) : void
    • Capture the result of the editPhotos call, and dispatch
  • getContext (photo_id:String, photoset_id:String) : void
    • Returns next and previous photos for a photo in a set.
  • getContext_result (event:Event) : void
    • Capture the result of the getContext call, and dispatch
  • getInfo (photoset_id:String) : void
    • Returns next and previous photos for a photo in a set.
  • getInfo_result (event:Event) : void
    • Capture the result of the getInfo call, and dispatch
  • getList (user_id:String = "") : void
    • Returns the photosets belonging to the specified user.
  • getList_result (event:Event) : void
    • Capture the result of the getList call, and dispatch
  • getPhotos (photoset_id:String) : void
    • Get the list of photos in a set.
  • getPhotos_result (event:Event) : void
    • Capture the result of the getPhotos call, and dispatch
  • orderSets (photoset_ids:Array) : void
    • Set the order of photosets for the calling user.
  • orderSets_result (event:Event) : void
    • Capture the result of the orderSets call, and dispatch
  • removePhoto (photoset_id:String, photo_id:String) : void
    • Remove a photo from a photoset.
  • removePhoto_result (event:Event) : void
    • Capture the result of the removePhoto call, and dispatch

Constructor

PhotoSets

public function PhotoSets (
service:FlickrService)

Construct a new Notes "method group" class
Parameters:
service:
The FlickrService this method group is associated with. @langversion ActionScript 3.0 @playerversion Flash 8.5

Instance properties

_service

private _service:FlickrService
(read)

A reference to the FlickrService that contains the api key and logic for processing API calls/responses

Instance methods

addPhoto

public function addPhoto (
photoset_id:String, photo_id:String) : void

Add a photo to the end of an existing photoset. This method requires authentication with WRITE permission.
Parameters:
photoset_id:
The id of the photoset to add a photo to.
photo_id :
The id of the photo to add to the set.
See also:

addPhoto_result

private function addPhoto_result (
event:Event) : void

Capture the result of the addPhoto call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

create

public function create (
title:String, description:String, primary_photo_id:String) : void

Create a new photoset for the calling user. This method requires authentication with WRITE permission.
Parameters:
title :
A title for the photoset.
description :
(Optional) A description of the photoset. May contain limited html.
primary_photo_id:
The id of the photo to represent this set. The photo must belong to the calling user.
See also:

create_result

private function create_result (
event:Event) : void

Capture the result of the create call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

delete_result

private function delete_result (
event:Event) : void

Capture the result of the delete call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

deleteSet

public function deleteSet (
photoset_id:String) : void

Delete a photoset. This method requires authentication with WRITE permission.
Parameters:
photoset_id:
The id of the photoset to delete. It must be owned by the calling user.
See also:

editMeta

public function editMeta (
photoset_id:String, title:String, description:String = "") : void

Modify the meta-data for a photoset. This method requires authentication with WRITE permission.
Parameters:
photoset_id:
The id of the photoset to modify.
title :
The new title for the photoset.
description:
(Optional) A description of the photoset. May contain limited html.
See also:

editMeta_result

private function editMeta_result (
event:Event) : void

Capture the result of the editMeta call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

editPhotos

public function editPhotos (
photoset_id:String, primary_photo_id:String, photo_ids:Array) : void

Modify the photos in a photoset. Use this method to add, remove and re-order photos. This method requires authentication with WRITE permission.
Parameters:
photoset_id :
The id of the photoset to modify. The photoset must belong to the calling user.
primary_photo_id:
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 :
An array of photo ids (number or string) 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.
See also:

editPhotos_result

private function editPhotos_result (
event:Event) : void

Capture the result of the editPhotos call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

getContext

public function getContext (
photo_id:String, photoset_id:String) : void

Returns next and previous photos for a photo in a set.
Parameters:
photo_id :
The id of the photo to fetch the context for.
photoset_id:
The id of the photoset for which to fetch the photo's context.
See also:

getContext_result

private function getContext_result (
event:Event) : void

Capture the result of the getContext call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

getInfo

public function getInfo (
photoset_id:String) : void

Returns next and previous photos for a photo in a set.
Parameters:
photoset_id:
The ID of the photoset to fetch information for.
See also:

getInfo_result

private function getInfo_result (
event:Event) : void

Capture the result of the getInfo call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

getList

public function getList (
user_id:String = "") : void

Returns the photosets belonging to the specified user.
Parameters:
user_id:
The NSID of the user to get a photoset list for. If none is specified, the calling user is assumed.
See also:

getList_result

private function getList_result (
event:Event) : void

Capture the result of the getList call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

getPhotos

public function getPhotos (
photoset_id:String) : void

Get the list of photos in a set.
Parameters:
photoset_id:
The id of the photoset to return the photos for.
See also:

getPhotos_result

private function getPhotos_result (
event:Event) : void

Capture the result of the getPhotos call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

orderSets

public function orderSets (
photoset_ids:Array) : void

Set the order of photosets for the calling user. This method requires authentication with WRITE permission.
Parameters:
photoset_ids:
An array of photoset IDs (number or string), 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.
See also:

orderSets_result

private function orderSets_result (
event:Event) : void

Capture the result of the orderSets call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper

removePhoto

public function removePhoto (
photoset_id:String, photo_id:String) : void

Remove a photo from a photoset. This method requires authentication with WRITE permission.
Parameters:
photoset_id:
The id of the photoset to remove a photo from.
photo_id :
The id of the photo to remove from the set.
See also:

removePhoto_result

private function removePhoto_result (
event:Event) : void

Capture the result of the removePhoto call, and dispatch the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader that was used to communicate with the Flickr API from the invokeMethod method in MethodGroupHelper