com. kelvinluck. flashr. core. FlashrResponse

Class to define a listener for responses from the FlickrAPI.

Subclass this class or override the methods you are interested in.  The methods as they exist in this class just output debugging information and exist kind of as an interface to specify the callbacks from Flashr.callMethod and the variables available to them.

It is in an instance of this class (or one of it’s subclasses) that you will receive the asynchronous response from a call to flickr.com.  As long as you have initialised a LogWrapper instance (like so:

LogWrapper.getInstance().init();

LogWrapper.getLog().addPublisher(new TracePublisher());

) then a default FlashrResponse will trace useful information about the values it has received.

Otherwise make sure you have overridden onError and are doing something useful with the information you receive about any errors encountered.

See Also

Flashr, Flashr.callMethod, http://www.flickr.com/services/api/

Licence

This code and documentation is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0.  http://creativecommons.org/licenses/by-nc-sa/2.0/

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Version

0.5.0

Author

Kelvin Luck < kelvin at kelvinluck dot com >

Project Website

http://flashr.kelvinluck.com/

Subversion Id

$Id: FlashrResponse.as 79 2006-09-06 16:57:39Z kluck $

Summary
com. kelvinluck. flashr. core. FlashrResponseClass to define a listener for responses from the FlickrAPI.
supressOutputUsed internally to control whether info messages are logged.
currentRequestThe current FlashrRequest object.
setSuppressOutputUse if you don’t want this instance to log it’s messages.
onAuthGetFrobCalled when there is a successful response from a call to flickr.auth.getFrob
onAuthCheckTokenCalled when there is a successful response from a call to flickr.auth.getToken or flickr.auth.checkToken.
onContactsGetListCalled when there is a response from a call to flickr.contacts.getList.
onContactsGetPublicListCalled when there is a response from a call to flickr.contacts.getPublicList.
onFavoritesAddCalled when there is a response from a call to flickr.favorites.add.
onFavoritesGetListCalled when there is a response from a call to flickr.favorites.getList.
onFavoritesGetPublicListCalled when there is a response from a call to flickr.favorites.getPublicList.
onFavoritesRemoveCalled when there is a response from a call to flickr.favorites.remove.
onGroupsPoolsAddCalled when there is a response from a call to flickr.groups.pools.add
onGroupsPoolsGetContextCalled when there is a response from a call to flickr.groups.pools.getContext
onGroupsPoolsGetGroupsCalled when there is a response from a call to flickr.groups.pools.getGroups
onGroupsPoolsGetPhotosCalled when there is a response from a call to flickr.groups.pools.getPhotos
onGroupsPoolsRemoveCalled when there is a response from a call to flickr.groups.pools.remove
onInterestingnessGetListCalled when there is a response from a call to flickr.interestingness.getList
onPeopleFindByEmailCalled when there is a response from a call to flickr.people.findByEmail.
onPeopleFindByUsernameCalled when there is a response from a call to flickr.people.findByUsername.
onPeopleGetInfoCalled when there is a response from a call to flickr.people.getInfo.
onPeopleGetPublicGroupsCalled when there is a response from a call to flickr.people.getPublicGroups.
onPeopleGetPublicPhotosCalled when there is a response from a call to flickr.people.getPublicPhotos.
onPeopleGetUploadStatusCalled when there is a response from a call to flickr.people.getUploadStatus.
onPhotosAddTagsCalled when there is a response from a call to flickr.photos.addTags.
onPhotosDeleteCalled when there is a response from a call to flickr.photos.delete.
onPhotosGetAllContextsCalled when there is a response from a call to flickr.people.getAllContexts.
onPhotosGetContactsPhotosCalled when there is a response from a call to flickr.people.getContactsPhotos.
onPhotosGetContactsPublicPhotosCalled when there is a response from a call to flickr.people.getContactsPhotos.
onPhotosGetContextCalled when there is a response from a call to flickr.people.getContext.
onPhotosGetCountsCalled when there is a response from a call to flickr.people.getCounts.
onPhotosGetExifCalled when there is a response from a call to flickr.people.getExif.
onPhotosGetInfoCalled when there is a response from a call to flickr.people.getInfo.
onPhotosGetNotInSetCalled when there is a response from a call to flickr.people.getPhotosNotInSet.
onPhotosGetPermsCalled when there is a response from a call to flickr.people.getPerms.
onPhotosGetRecentCalled when there is a response from a call to flickr.people.getRecent.
onPhotosGetSizesCalled when there is a response from a call to flickr.people.getSizes.
onPhotosGetUntaggedCalled when there is a response from a call to flickr.people.getUntagged.
onPhotosGetWithGeoDataCalled when there is a response from a call to flickr.people.getWithGeoData.
onPhotosGetWithoutGeoDataCalled when there is a response from a call to flickr.people.getWithoutGeoData.
onPhotosRecentlyUpdatedCalled when there is a response from a call to flickr.photos.recentlyUpdated
onPhotosRemoveTagCalled when there is a response from a call to flickr.people.removeTag.
onPhotosSearchCalled when there is a response from a call to flickr.people.search.
onPhotosSetDatesCalled when there is a response from a call to flickr.people.setDates.
onPhotosSetMetaCalled when there is a response from a call to flickr.people.setMeta.
onPhotosSetPermsCalled when there is a response from a call to flickr.people.setPerms.
onPhotosSetTagsCalled when there is a response from a call to flickr.people.setTags.
onPhotosCommentsAddCommentCalled when there is a response from a call to flickr.photos.comments.addComment
onPhotosCommentsDeleteCommentCalled when there is a response from a call to flickr.photos.comments.deleteComment
onPhotosCommentsEditCommentCalled when there is a response from a call to flickr.photos.comments.editComment
onPhotosCommentsGetListCalled when there is a response from a call to flickr.photos.comments.getList.
onPhotosGeoGetLocationCalled when there is a response from a call to flickr.photos.geo.getLocation
onPhotosGeoGetPermsCalled when there is a response from a call to flickr.photos.geo.getPerms
onPhotosGeoRemoveLocationCalled when there is a response from a call to flickr.photos.geo.removeLocation
onPhotosGeoSetLocationCalled when there is a response from a call to flickr.photos.geo.setLocation
onPhotosGeoSetPermsCalled when there is a response from a call to flickr.photos.geo.setPerms
onPhotosLicensesGetInfoCalled when there is a response from a call to flickr.photos.licenses.getInfo.
onPhotosLicensesSetLicenseCalled when there is a response from a call to flickr.photos.licenses.setLicense.
onPhotosNotesAddCalled when there is a response from a call to flickr.photos.notes.add
onPhotosNotesDeleteCalled when there is a response from a call to flickr.photos.notes.delete
onPhotosNotesEditCalled when there is a response from a call to flickr.photos.notes.edit
onPhotosetsAddPhotoCalled when there is a response from a call to flickr.photosets.addPhoto
onPhotosetsCreateCalled when there is a response from a call to flickr.photosets.create
onPhotosetsDeleteCalled when there is a response from a call to flickr.photosets.delete
onPhotosetsEditMetaCalled when there is a response from a call to flickr.photosets.editMeta
onPhotosetsEditPhotosCalled when there is a response from a call to flickr.photosets.editPhotos
onPhotosetsGetContextCalled when there is a response from a call to flickr.photosets.getContext
onPhotosetsGetInfoCalled when there is a response from a call to flickr.photosets.getInfo
onPhotosetsGetListCalled when there is a response from a call to flickr.photosets.getList
onPhotosetsGetPhotosCalled when there is a response from a call to flickr.photosets.getPhotos
onPhotosetsOrderSetsCalled when there is a response from a call to flickr.photosets.orderSets
onPhotosetsRemovePhotoCalled when there is a response from a call to flickr.photosets.removePhoto
onPhotosetsCommentsAddCommentCalled when there is a response from a call to flickr.photosets.comments.addComment
onPhotosetsCommentsDeleteCommentCalled when there is a response from a call to flickr.photosets.comments.deleteComment
onPhotosetsCommentsGetListCalled when there is a response from a call to flickr.photosets.comments.getList
onPhotosetsCommentsEditCommentCalled when there is a response from a call to flickr.photosets.comments.editComment
onTagsGetListPhotoCalled when there is a response from a call to flickr.tags.tagsGetListPhoto.
onTagsGetListUserCalled when there is a response from a call to flickr.tags.getListUser.
onTagsGetListUserPopularCalled when there is a response from a call to flickr.tags.getListUserPopular.
onTagsGetRelatedCalled when there is a response from a call to flickr.tags.tagsGetRelated.
onTestEchoCalled when there is a response from a call to flickr.test.echo.
onTestLoginCalled when there is a response from a call to flickr.test.login
onTestNullCalled when there is a response from a call to flickr.test.null
onErrorCalled when the Flickr API returns an error code..
onAPIResponseInternal function which deals with a response from a Flickr API call and forwards any relevant arguments to the relevant function.
destroyCall this function to delete a FlashrResponse - it will unregister itself as a listener which should allow it to delete cleanly.

supressOutput

private var supressOutput: Boolean

Used internally to control whether info messages are logged.

See Also

setSuppressOutput

currentRequest

var currentRequest: FlashrRequest

The current FlashrRequest object.  Use this if you want to associate the response you get with a particular request you made.  This is probably normally clear by the response you get but the information is here if you need it...

setSuppressOutput

function setSuppressOutput(supressOutput: Boolean):Void

Use if you don’t want this instance to log it’s messages.

You may want to do this if you have multipule FlashrResponses in one movie (e.g. one for auth stuff and one for other calls) or in a production environment.

See Also

supressOutput

onAuthGetFrob

public function onAuthGetFrob(frob)

Called when there is a successful response from a call to flickr.auth.getFrob

Note that you only need to use this and Flashr.authGetFrob if you have opted not to use Flashr.authLogin for some reason.

Parameters

froba frob to be used during authentication.

See Also

Flashr.authLogin, Flashr.authGetFrob, http://flickr.com- /services- /api- /flickr.auth.getFrob.html

onAuthCheckToken

public function onAuthCheckToken(token)

Called when there is a successful response from a call to flickr.auth.getToken or flickr.auth.checkToken.

The token is returned so that you can save it so that you can authenticate against flickr at a later date without prompting the user again.

Parameters

tokenthe auth token.

See Also

Flashr.authLogin, Flashr.authCheckToken, http://www.flickr.com- /services- /api- /flickr.auth.getToken.html, http://www.flickr.com- /services- /api- /flickr.auth.checkToken.html

onContactsGetList

function onContactsGetList(user: Person,
filter: String)

Called when there is a response from a call to flickr.contacts.getList.  Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person whose contacts you collected.  Use Person.getPublicContacts to see their contacts.
filterThe filter that was used on the call to Flashr.contactsGetList or undefined if no filter was used.

See Also

Flashr.contactsGetList, http://flickr.com- /services- /api- /flickr.contacts.getList.html

onContactsGetPublicList

function onContactsGetPublicList(user: Person)

Called when there is a response from a call to flickr.contacts.getPublicList.  Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person object whose contacts you got.  Use Person.getPublicContacts to retrieve the list of contacts.

See Also

Flashr.contactsGetPublicList, Person.getPublicContacts, http://flickr.com- /services- /api- /flickr.contacts.getPublicList.html

onFavoritesAdd

function onFavoritesAdd(photo: Photo)

Called when there is a response from a call to flickr.favorites.add.  Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe photo which has just been successfully added to the auth’duser’s favorites.

See Also

Flashr.favoritesAdd, http://www.flickr.com- /services- /api- /flickr.favorites.add.html

onFavoritesGetList

function onFavoritesGetList(user: Person,
resultsSet: ResultsSet)

Called when there is a response from a call to flickr.favorites.getList.  Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person whose favourites we got.  You see get their favorites using Person.getFavorites.
resultsSetA ResultsSet object containing information about the pagination and total number of results for this query.

See Also

Flashr.favoritesGetList, Person.getFavorites, http://www.flickr.com- /services- /api- /flickr.favorites.getList.html

onFavoritesGetPublicList

function onFavoritesGetPublicList(user: Person,
resultsSet: ResultsSet)

Called when there is a response from a call to flickr.favorites.getPublicList.  Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person whose favourites we got.  You can get their favorites using Person.getFavorites.
resultsSetA ResultsSet object containing information about the pagination and total number of results for this query.

See Also

Flashr.favoritesGetPublicList, Person.getFavorites, http://www.flickr.com- /services- /api- /flickr.favorites.getPublicList.html

onFavoritesRemove

function onFavoritesRemove(photo: Photo)

Called when there is a response from a call to flickr.favorites.remove.  Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe photo which has just been successfully removed from the auth’d user’s favorites.

See Also

Flashr.favoritesRemove, http://www.flickr.com- /services- /api- /flickr.favorites.remove.html

onGroupsPoolsAdd

function onGroupsPoolsAdd(photo: Photo,
group: Group)

Called when there is a response from a call to flickr.groups.pools.add

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you have just added to a Group.
groupThe Group you have just added the Photo to.

See Also

Flashr.groupsPoolsAdd, http://flickr.com- /services- /api- /flickr.groups.pools.add.html

onGroupsPoolsGetContext

function onGroupsPoolsGetContext(photo: Photo,
group: Group)

Called when there is a response from a call to flickr.groups.pools.getContext

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you have just got the context for.
groupThe Group you have just got the context in

See Also

Flashr.groupsPoolsGetContext, Photo.getContextGroupPool, http://flickr.com- /services- /api- /flickr.groups.pools.getContext.html

onGroupsPoolsGetGroups

function onGroupsPoolsGetGroups(user: Person)

Called when there is a response from a call to flickr.groups.pools.getGroups

Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person you have just got the Groups for.

See Also

Flashr.groupsPoolsGetGroups, Person.getGroups, http://flickr.com- /services- /api- /flickr.groups.pools.getGroups.html

onGroupsPoolsGetPhotos

function onGroupsPoolsGetPhotos(group: Group,
resultsSet: ResultsSet)

Called when there is a response from a call to flickr.groups.pools.getPhotos

Override this method in your application if you want to do something with the response to this call.

Parameters

groupThe Group you have just got the Photos for.
resultsSetA ResultsSet object containing information about the photos got, the pagination and total number of results for this query.

See Also

Flashr.groupsPoolsGetPhotos, Group.getPhotos, http://flickr.com- /services- /api- /flickr.groups.pools.getPhotos.html

onGroupsPoolsRemove

function onGroupsPoolsRemove(photo: Photo,
group: Group)

Called when there is a response from a call to flickr.groups.pools.remove

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you have just added to a Group.
groupThe Group you have just added the Photo to.

See Also

Flashr.groupsPoolsAdd, http://flickr.com- /services- /api- /flickr.groups.pools.remove.html

onInterestingnessGetList

function onInterestingnessGetList(resultsSet: ResultsSet,
date: Date)

Called when there is a response from a call to flickr.interestingness.getList

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetThe ResultsSet detailing the Photos you have just retrieved.
dateThe Date you just retrieved Photos for.

See Also

Flashr.interestingnessGetList, http://www.flickr.com- /services- /api- /flickr.interestingness.getList.html

onPeopleFindByEmail

function onPeopleFindByEmail(person: Person)

Called when there is a response from a call to flickr.people.findByEmail.

Override this method in your application if you want to do something with the response to this call.

Parameters

personA Person object containing information about the person you found.

See Also

Flashr.peopleFindByEmail, http://flickr.com- /services- /api- /flickr.people.findByEmail.html

onPeopleFindByUsername

function onPeopleFindByUsername(person: Person)

Called when there is a response from a call to flickr.people.findByUsername.

Override this method in your application if you want to do something with the response to this call.

Parameters

personA Person object containing information about the person you found

See Also

Flashr.peopleFindByUsername, http://flickr.com- /services- /api- /flickr.people.findByUsername.html

onPeopleGetInfo

function onPeopleGetInfo(person: Person)

Called when there is a response from a call to flickr.people.getInfo.

Override this method in your application if you want to do something with the response to this call.

Parameters

personA Person object containing information about the person you found (nsid, isAdmin, isPro, username, realname, location, photosFirstDateTaken, photosFirstDate and numPhotos).

See Also

Flashr.peopleGetInfo, http://flickr.com- /services- /api- /flickr.people.getInfo.html

onPeopleGetPublicGroups

function onPeopleGetPublicGroups(person: Person)

Called when there is a response from a call to flickr.people.getPublicGroups.

Override this method in your application if you want to do something with the response to this call.

Parameters

personA Person object representing the person whose groups you wanted info on

See Also

Flashr.peopleGetPublicGroups, Person.getGroups, http://flickr.com- /services- /api- /flickr.people.getPublicGroups.html

onPeopleGetPublicPhotos

function onPeopleGetPublicPhotos(person: Person,
resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getPublicPhotos.

Override this method in your application if you want to do something with the response to this call.

Parameters

personThe Person whose public photos you have got.
resultsSetA ResultsSet object containing information about the pagination and total number of results for this query.

See Also

Flashr.peopleGetPublicPhotos, Person._photos, http://flickr.com- /services- /api- /flickr.people.getPublicPhotos.html

onPeopleGetUploadStatus

function onPeopleGetUploadStatus(person: Person)

Called when there is a response from a call to flickr.people.getUploadStatus.

Override this method in your application if you want to do something with the response to this call.

Parameters

personThe Person whose upload status you have got (e.g. the currently auth’d user).

See Also

Flashr.peopleGetUploadStatus, Person.bandwidthMax, Person.bandwidthUsed, Person.filesizeMax, http://flickr.com- /services- /api- /flickr.people.getUploadStatus.html

onPhotosAddTags

function onPhotosAddTags(photo: Photo,
tags: String)

Called when there is a response from a call to flickr.photos.addTags.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo that the tags were added to.
tagsThe tags that were added.

See Also

Flashr.photosAddTags, http://www.flickr.com- /services- /api- /flickr.photos.addTags.html

onPhotosDelete

function onPhotosDelete(photoId: String)

Called when there is a response from a call to flickr.photos.delete.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoIdThe id of the Photo you just deleted.

See Also

Flashr.photosDelete, http://www.flickr.com- /services- /api- /flickr.photos.delete.html

onPhotosGetAllContexts

function onPhotosGetAllContexts(photo: Photo)

Called when there is a response from a call to flickr.people.getAllContexts.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose contexts you have just got

See Also

Photo.getPhotosets, <Photo.getGroupPools> TODO: implement this!, http://flickr.com- /services- /api- /flickr.photos.getAllContexts.html

onPhotosGetContactsPhotos

function onPhotosGetContactsPhotos(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getContactsPhotos.

Override this method in your application if you want to do something with the response to this call.

Note that Flashr.getFlashr().authUser will point to the auth’d user and any contacts that photos were found for whill have been added to that Persons contact list.

Parameters

resultsSetA ResultsSet object containing information about the photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetContactsPhotos, http://flickr.com- /services- /api- /flickr.photos.getContactsPhotos.html

onPhotosGetContactsPublicPhotos

function onPhotosGetContactsPublicPhotos(person: Person,
resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getContactsPhotos.

Override this method in your application if you want to do something with the response to this call.

Parameters

personThe Person whose contacts public photos you requested
resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetContactsPublicPhotos, http://flickr.com- /services- /api- /flickr.photos.getContactsPublicPhotos.html

onPhotosGetContext

function onPhotosGetContext(photo: Photo)

Called when there is a response from a call to flickr.people.getContext.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo we were getting the context for.  The values of context* will be set in it and will point to the relevant other Photo objects

See Also

Flashr.photosGetContext, http://flickr.com- /services- /api- /flickr.photos.getContext.html

onPhotosGetCounts

function onPhotosGetCounts(counts: Array)

Called when there is a response from a call to flickr.people.getCounts.

Override this method in your application if you want to do something with the response to this call.

Parameters

countsAn array containing objects for each date range getCounts was called on Each object contains the following attributes: count, fromdate and todate

See Also

Flashr.photosGetCounts, http://www.flickr.com- /services- /api- /flickr.photos.getCounts.html

onPhotosGetExif

function onPhotosGetExif(photo: Photo)

Called when there is a response from a call to flickr.people.getExif.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoA Photo containing all the information loaded from flickr.com

See Also

Flashr.photosGetExif, http://www.flickr.com- /services- /api- /flickr.photos.getExif.html

onPhotosGetInfo

function onPhotosGetInfo(photo: Photo)

Called when there is a response from a call to flickr.people.getInfo.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoA Photo containing all the information loaded from flickr.com

See Also

Flashr.photosGetInfo, http://www.flickr.com- /services- /api- /flickr.photos.getInfo.html

onPhotosGetNotInSet

function onPhotosGetNotInSet(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getPhotosNotInSet.

If you are interested in the particular arguments which were used to call this method then check the contents of resultsSet.request.additionalArguments.

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetNotInSet, http://www.flickr.com- /services- /api- /flickr.photos.getNotInSet.html

onPhotosGetPerms

function onPhotosGetPerms(photo: Array)

Called when there is a response from a call to flickr.people.getPerms.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo that you just got permissions for.

TODO

Need to actually do something with the permissions that were returned.  At the moment they are ignored as I need to figure out how to store permissions which are a combination of Person and Photo - and so can’t just be stored on a Photo.

See Also

Flashr.photosGetPerms, http://www.flickr.com- /services- /api- /flickr.photos.getPerms.html

onPhotosGetRecent

function onPhotosGetRecent(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getRecent.

Override this method in your application if you want to do something with the response to this call.

Parameters

photosAn Array of Photo’s.
resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetRecent, http://www.flickr.com- /services- /api- /flickr.photos.getRecent.html

onPhotosGetSizes

function onPhotosGetSizes(photo: Photo)

Called when there is a response from a call to flickr.people.getSizes.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose sizes you got.

See Also

Flashr.photosGetSizes, Photo._sizes, PhotoSize, Photo.getLargestAvailableSize, http://www.flickr.com- /services- /api- /flickr.photos.getSizes.html

onPhotosGetUntagged

function onPhotosGetUntagged(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getUntagged.

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetUntagged, http://www.flickr.com- /services- /api- /flickr.photos.getUntagged.html

onPhotosGetWithGeoData

function onPhotosGetWithGeoData(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getWithGeoData.

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetWithGeoData, http://www.flickr.com- /services- /api- /flickr.photos.getWithGeoData.html

onPhotosGetWithoutGeoData

function onPhotosGetWithoutGeoData(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.getWithoutGeoData.

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosGetWithoutGeoData, http://www.flickr.com- /services- /api- /flickr.photos.getWithoutGeoData.html

onPhotosRecentlyUpdated

function onPhotosRecentlyUpdated(resultsSet: ResultsSet,
minDate: Date)

Called when there is a response from a call to flickr.photos.recentlyUpdated

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the recently updated photos
minDateThe date that you requested all photos updated after

See Also

Flashr.photosRecentlyUpdated, http://www.flickr.com- /services- /api- /flickr.photos.getPhotosRecentlyUploaded.html

onPhotosRemoveTag

function onPhotosRemoveTag(tagId: Number)

Called when there is a response from a call to flickr.people.removeTag.

Override this method in your application if you want to do something with the response to this call.

Note that Flickr.getFlickr().authUser will point to the auth’d user who is obviously the person who removed the Tag if you are interested in that.

Parameters

tagIdThe ID of the Tag that was removed.  This identifies a Tag and a Photo it was associated with...

See Also

Flashr.photosRemoveTag, http://www.flickr.com- /services- /api- /flickr.photos.removeTag.html

onPhotosSearch

function onPhotosSearch(resultsSet: ResultsSet)

Called when there is a response from a call to flickr.people.search.

If you are interested in the particular arguments which were used to call this search then check the contents of resultsSet.request.additionalArguments.

Override this method in your application if you want to do something with the response to this call.

Parameters

resultsSetA ResultsSet object containing information about the Photos got, the pagination and total number of results for this query.

See Also

Flashr.photosSearch, http://www.flickr.com- /services- /api- /flickr.photos.search.html

onPhotosSetDates

function onPhotosSetDates(photo: Photo)

Called when there is a response from a call to flickr.people.setDates.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose dates have just been updated,

See Also

Flashr.photosSetDates, http://www.flickr.com- /services- /api- /flickr.photos.setDates.html

onPhotosSetMeta

function onPhotosSetMeta(photo: Photo)

Called when there is a response from a call to flickr.people.setMeta.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose meta info has just been updated,

See Also

Flashr.photosSetMeta, http://www.flickr.com- /services- /api- /flickr.photos.setMeta.html

onPhotosSetPerms

function onPhotosSetPerms(photo: Photo)

Called when there is a response from a call to flickr.people.setPerms.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose permissions info has just been updated,

See Also

Flashr.photosSetMeta, http://www.flickr.com- /services- /api- /flickr.photos.setPerms.html

onPhotosSetTags

function onPhotosSetTags(photo: Photo)

Called when there is a response from a call to flickr.people.setTags.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose tags have just been updated.

See Also

Flashr.photosSetTags, http://www.flickr.com- /services- /api- /flickr.photos.setTags.html

onPhotosCommentsAddComment

function onPhotosCommentsAddComment(comment: Comment,
photo: Photo)

Called when there is a response from a call to flickr.photos.comments.addComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentThe Comment that has just been created.
photoThe Photo that this comment was added to.

See Also

Flashr.photosCommentsAddComment, http://flickr.com- /services- /api- /flickr.photos.comments.addComment.html

onPhotosCommentsDeleteComment

function onPhotosCommentsDeleteComment(comment: Comment)

Called when there is a response from a call to flickr.photos.comments.deleteComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentThe Comment that has just been deleted.

See Also

Flashr.photosCommentsDeleteComment, http://flickr.com- /services- /api- /flickr.photos.comments.deleteComment.html

onPhotosCommentsEditComment

function onPhotosCommentsEditComment(comment: Comment)

Called when there is a response from a call to flickr.photos.comments.editComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentThe Comment that has just been edited.

See Also

Flashr.photosCommentsEditComment, http://flickr.com- /services- /api- /flickr.photos.comments.editComment.html

onPhotosCommentsGetList

function onPhotosCommentsGetList(photo: Photo)

Called when there is a response from a call to flickr.photos.comments.getList.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose comments have just been got.

See Also

Flashr.photosCommentsGetList, Photo.getComments, http://flickr.com- /services- /api- /flickr.photos.comments.getList.html

onPhotosGeoGetLocation

function onPhotosGeoGetLocation(photo: Photo)

Called when there is a response from a call to flickr.photos.geo.getLocation

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just got GeoLocation information for.

See Also

Flashr.photosGeoGetLocation, Photo.location, http://www.flickr.com- /services- /api- /flickr.photos.geo.getLocation.html

onPhotosGeoGetPerms

function onPhotosGeoGetPerms(photo: Photo)

Called when there is a response from a call to flickr.photos.geo.getPerms

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just got GeoPerms information for.

See Also

Flashr.photosGeoGetPerms, Photo.geoPerms, http://www.flickr.com- /services- /api- /flickr.photos.geo.getPerms.html

onPhotosGeoRemoveLocation

function onPhotosGeoRemoveLocation(photo: Photo)

Called when there is a response from a call to flickr.photos.geo.removeLocation

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just removed GeoLocation information for.

See Also

Flashr.photosGeoRemoveLocation, Photo.location, http://www.flickr.com- /services- /api- /flickr.photos.geo.removeLocation.html

onPhotosGeoSetLocation

function onPhotosGeoSetLocation(photo: Photo)

Called when there is a response from a call to flickr.photos.geo.setLocation

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just set GeoLocation information for.

See Also

Flashr.photosGeoSetLocation, Photo.location, http://www.flickr.com- /services- /api- /flickr.photos.geo.setLocation.html

onPhotosGeoSetPerms

function onPhotosGeoSetPerms(photo: Photo)

Called when there is a response from a call to flickr.photos.geo.setPerms

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just set GeoPerms information for.

See Also

Flashr.photosGeoSetPerms, Photo.geoPerms, http://www.flickr.com- /services- /api- /flickr.photos.geo.setPerms.html

onPhotosLicensesGetInfo

function onPhotosLicensesGetInfo(licences: Array)

Called when there is a response from a call to flickr.photos.licenses.getInfo.

Override this method in your application if you want to do something with the response to this call.

Parameters

licencesAn Array of Licenses.

See Also

Flashr.photosLicensesGetInfo, http://www.flickr.com- /services- /api- /flickr.photos.licenses.getInfo.html

onPhotosLicensesSetLicense

function onPhotosLicensesSetLicense(photo: Photo)

Called when there is a response from a call to flickr.photos.licenses.setLicense.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose license you just set.

See Also

Flashr.photosLicensesSetLicense, http://www.flickr.com- /services- /api- /flickr.photos.licenses.setLicense.html

onPhotosNotesAdd

function onPhotosNotesAdd(photo: Photo,
note: Note)

Called when there is a response from a call to flickr.photos.notes.add

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo you just added a Note to.
noteThe Note you just added.

See Also

Flashr.photosNotesAdd, http://www.flickr.com- /services- /api- /flickr.photos.notes.add.html

onPhotosNotesDelete

function onPhotosNotesDelete(noteId: String)

Called when there is a response from a call to flickr.photos.notes.delete

Override this method in your application if you want to do something with the response to this call.

Parameters

noteIdThe id of the Note you just deleted.

See Also

Flashr.photosNotesDelete, http://www.flickr.com- /services- /api- /flickr.photos.notes.delete.html

onPhotosNotesEdit

function onPhotosNotesEdit(note: Note)

Called when there is a response from a call to flickr.photos.notes.edit

Override this method in your application if you want to do something with the response to this call.

Parameters

noteThe Note you just edited.

See Also

Flashr.photosNotesEdit, http://www.flickr.com- /services- /api- /flickr.photos.notes.edit.html

onPhotosetsAddPhoto

function onPhotosetsAddPhoto(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.addPhoto

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe photoset the photo was added to.  The added photo will be the last one in Photoset._photos

See Also

Flashr.photosetsAddPhoto, Photoset.getPhotos, http://www.flickr.com- /services- /api- /flickr.photosets.addPhoto.html

onPhotosetsCreate

function onPhotosetsCreate(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.create

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe newly created Photoset

See Also

Flashr.photosetsCreate, http://www.flickr.com- /services- /api- /flickr.photosets.create.html

onPhotosetsDelete

function onPhotosetsDelete(photosetId: Number)

Called when there is a response from a call to flickr.photosets.delete

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetIdThe id of the deleted photoset

See Also

Flashr.photosetsDelete, http://www.flickr.com- /services- /api- /flickr.photosets.delete.html

onPhotosetsEditMeta

function onPhotosetsEditMeta(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.editMeta

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset that you have just updated the meta info for...

See Also

Flashr.photosetsEditMeta, http://www.flickr.com- /services- /api- /flickr.photosets.editMeta.html

onPhotosetsEditPhotos

function onPhotosetsEditPhotos(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.editPhotos

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset that you have just updated the photos for...

See Also

Flashr.photosetsEditPhotos, http://www.flickr.com- /services- /api- /flickr.photosets.editPhotos.html

onPhotosetsGetContext

function onPhotosetsGetContext(photo: Photo,
photoset: Photoset)

Called when there is a response from a call to flickr.photosets.getContext

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo that you have just got the context of.
photosetThe Photoset you got the context in.

See Also

Flashr.photosetsGetContext, Photo.getContextPhotoset, http://www.flickr.com- /services- /api- /flickr.photosets.getContext.html

onPhotosetsGetInfo

function onPhotosetsGetInfo(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.getInfo

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset that you have just got info for...

See Also

Flashr.photosetsEditPhotos, http://www.flickr.com- /services- /api- /flickr.photosets.getInfo.html

onPhotosetsGetList

function onPhotosetsGetList(user: Person)

Called when there is a response from a call to flickr.photosets.getList

Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person whose Photosets you have just retrieved.

See Also

Flashr.photosetsGetList, Person.getPhotosets, http://www.flickr.com- /services- /api- /flickr.photosets.getList.html

onPhotosetsGetPhotos

function onPhotosetsGetPhotos(photoset: Photoset,
request: FlashrRequest)

Called when there is a response from a call to flickr.photosets.getPhotos

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset whose Photos you have just retrieved.
requestThe FlashrRequest that returned this result - useful if you need to know about the extras or privacy_filter passed to this method.

See Also

Flashr.photosetsGetPhotos, Photoset.getPhotos, http://www.flickr.com- /services- /api- /flickr.photosets.getPhotos.html

onPhotosetsOrderSets

function onPhotosetsOrderSets(user: Person)

Called when there is a response from a call to flickr.photosets.orderSets

Override this method in your application if you want to do something with the response to this call.

Parameters

userThe Person whose Photos you have just ordered (i.e. you!)

See Also

Flashr.photosetsOrderSets, Person.getPhotosets, http://www.flickr.com- /services- /api- /flickr.photosets.orderSets.html

onPhotosetsRemovePhoto

function onPhotosetsRemovePhoto(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.removePhoto

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset you have just removed a Photo from

See Also

Flashr.photosetsRemovePhoto, http://www.flickr.com- /services- /api- /flickr.photosets.removePhoto.html

onPhotosetsCommentsAddComment

function onPhotosetsCommentsAddComment(comment: PhotosetComment)

Called when there is a response from a call to flickr.photosets.comments.addComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentThe PhotosetComment you just added.  You can access PhotosetComment.photoset if you need to access the Photoset you just added it to

See Also

Flashr.photosetsCommentsAddComment, http://www.flickr.com- /services- /api- /flickr.photosets.comments.addComment.html

onPhotosetsCommentsDeleteComment

function onPhotosetsCommentsDeleteComment(commentId: String)

Called when there is a response from a call to flickr.photosets.comments.deleteComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentIdThe id of the PhotosetComment you just deleted.

See Also

Flashr.photosetsCommentsDeleteComment, http://www.flickr.com- /services- /api- /flickr.photosets.comments.deleteComment.html

onPhotosetsCommentsGetList

function onPhotosetsCommentsGetList(photoset: Photoset)

Called when there is a response from a call to flickr.photosets.comments.getList

Override this method in your application if you want to do something with the response to this call.

Parameters

photosetThe Photoset you just got the list of comments for

See Also

Flashr.photosetsCommentsDeleteComment, Photoset.getComments, http://www.flickr.com- /services- /api- /flickr.photosets.comments.getList.html

onPhotosetsCommentsEditComment

function onPhotosetsCommentsEditComment(comment: PhotosetComment)

Called when there is a response from a call to flickr.photosets.comments.editComment

Override this method in your application if you want to do something with the response to this call.

Parameters

commentThe PhotosetComment you just edited.

See Also

Flashr.photosetsCommentsAddComment, http://www.flickr.com- /services- /api- /flickr.photosets.comments.editComment.html

onTagsGetListPhoto

function onTagsGetListPhoto(photo: Photo)

Called when there is a response from a call to flickr.tags.tagsGetListPhoto.

Override this method in your application if you want to do something with the response to this call.

Parameters

photoThe Photo whose tags are being returned.  Use Photo.getTags to get at the tags themselves...

See Also

Flashr.tagsGetListPhoto, Photo.getTags, http://www.flickr.com- /services- /api- /flickr.tags.getListPhoto.html

onTagsGetListUser

function onTagsGetListUser(person: Person)

Called when there is a response from a call to flickr.tags.getListUser.

Override this method in your application if you want to do something with the response to this call.

Parameters

personThe Person whose tags are being returned.

See Also

Flashr.tagsGetListUser, http://www.flickr.com- /services- /api- /flickr.tags.getListUser.html

onTagsGetListUserPopular

function onTagsGetListUserPopular(person: Person)

Called when there is a response from a call to flickr.tags.getListUserPopular.

Override this method in your application if you want to do something with the response to this call.

Parameters

personThe Person whose tags are being returned.

See Also

Flashr.tagsGetListUserPopular, http://www.flickr.com- /services- /api- /flickr.tags.getListUserPopular.html

onTagsGetRelated

function onTagsGetRelated(sourceTag: Tag)

Called when there is a response from a call to flickr.tags.tagsGetRelated.

Override this method in your application if you want to do something with the response to this call.

Parameters

sourceTagThe tag you were getting related tags for - look in it’s relatedTags Object.

See Also

Flashr.tagsGetRelated, Tag.relatedTags, http://www.flickr.com- /services- /api- /flickr.tags.getRelated.html

onTestEcho

function onTestEcho(params: Object)

Called when there is a response from a call to flickr.test.echo.

Override this method in your application if you want to do something with the response to this call.

Parameters

paramsAn object with containing all the echo’d variables.

See Also

Flashr.testEcho, http://www.flickr.com- /services- /api- /flickr.test.echo.html

onTestLogin

function onTestLogin(user: Person)

Called when there is a response from a call to flickr.test.login

Override this method in your application if you want to do something with the response to this call.

Parameters

userA reference to the logged in user

See Also

Flashr.testLogin, http://www.flickr.com- /services- /api- /flickr.test.login.html

onTestNull

function onTestNull()

Called when there is a response from a call to flickr.test.null

Override this method in your application if you want to do something with the response to this call.

See Also

Flashr.testNull, http://www.flickr.com- /services- /api- /flickr.test.null.html

onError

function onError(errorCode: Number,
errorDescription: String,
request: FlashrRequest)

Called when the Flickr API returns an error code..

Override this method in your application so that it deals with the error.

Parameters

errorCodeThe code of this error.
errorDescriptionA description of this error.
requestThe FlashrRequest that was being performed when the error occured

onAPIResponse

function onAPIResponse(responseEvent: FlashrResponseEvent)

Internal function which deals with a response from a Flickr API call and forwards any relevant arguments to the relevant function.

You shouldn’t need to override this function.

Parameters

responseEventA FlashrResponseEvent containing all the relevant information about the API call

destroy

function destroy():Void

Call this function to delete a FlashrResponse - it will unregister itself as a listener which should allow it to delete cleanly.

Probably a good idea to still delete the instance directly after calling destroy but at least it makes sure the listener isn’t listening anymore...

private var supressOutput: Boolean
Used internally to control whether info messages are logged.
var currentRequest: FlashrRequest
The current FlashrRequest object.
Class to hold information about requests to the Flickr API through Flashr
function setSuppressOutput(supressOutput: Boolean):Void
Use if you don’t want this instance to log it’s messages.
public function onAuthGetFrob(frob)
Called when there is a successful response from a call to flickr.auth.getFrob
public function onAuthCheckToken(token)
Called when there is a successful response from a call to flickr.auth.getToken or flickr.auth.checkToken.
function onContactsGetList(user: Person,
filter: String)
Called when there is a response from a call to flickr.contacts.getList.
function onContactsGetPublicList(user: Person)
Called when there is a response from a call to flickr.contacts.getPublicList.
function onFavoritesAdd(photo: Photo)
Called when there is a response from a call to flickr.favorites.add.
function onFavoritesGetList(user: Person,
resultsSet: ResultsSet)
Called when there is a response from a call to flickr.favorites.getList.
function onFavoritesGetPublicList(user: Person,
resultsSet: ResultsSet)
Called when there is a response from a call to flickr.favorites.getPublicList.
function onFavoritesRemove(photo: Photo)
Called when there is a response from a call to flickr.favorites.remove.
function onGroupsPoolsAdd(photo: Photo,
group: Group)
Called when there is a response from a call to flickr.groups.pools.add
function onGroupsPoolsGetContext(photo: Photo,
group: Group)
Called when there is a response from a call to flickr.groups.pools.getContext
function onGroupsPoolsGetGroups(user: Person)
Called when there is a response from a call to flickr.groups.pools.getGroups
function onGroupsPoolsGetPhotos(group: Group,
resultsSet: ResultsSet)
Called when there is a response from a call to flickr.groups.pools.getPhotos
function onGroupsPoolsRemove(photo: Photo,
group: Group)
Called when there is a response from a call to flickr.groups.pools.remove
function onInterestingnessGetList(resultsSet: ResultsSet,
date: Date)
Called when there is a response from a call to flickr.interestingness.getList
function onPeopleFindByEmail(person: Person)
Called when there is a response from a call to flickr.people.findByEmail.
function onPeopleFindByUsername(person: Person)
Called when there is a response from a call to flickr.people.findByUsername.
function onPeopleGetInfo(person: Person)
Called when there is a response from a call to flickr.people.getInfo.
function onPeopleGetPublicGroups(person: Person)
Called when there is a response from a call to flickr.people.getPublicGroups.
function onPeopleGetPublicPhotos(person: Person,
resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getPublicPhotos.
function onPeopleGetUploadStatus(person: Person)
Called when there is a response from a call to flickr.people.getUploadStatus.
function onPhotosAddTags(photo: Photo,
tags: String)
Called when there is a response from a call to flickr.photos.addTags.
function onPhotosDelete(photoId: String)
Called when there is a response from a call to flickr.photos.delete.
function onPhotosGetAllContexts(photo: Photo)
Called when there is a response from a call to flickr.people.getAllContexts.
function onPhotosGetContactsPhotos(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getContactsPhotos.
function onPhotosGetContactsPublicPhotos(person: Person,
resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getContactsPhotos.
function onPhotosGetContext(photo: Photo)
Called when there is a response from a call to flickr.people.getContext.
function onPhotosGetCounts(counts: Array)
Called when there is a response from a call to flickr.people.getCounts.
function onPhotosGetExif(photo: Photo)
Called when there is a response from a call to flickr.people.getExif.
function onPhotosGetInfo(photo: Photo)
Called when there is a response from a call to flickr.people.getInfo.
function onPhotosGetNotInSet(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getPhotosNotInSet.
function onPhotosGetPerms(photo: Array)
Called when there is a response from a call to flickr.people.getPerms.
function onPhotosGetRecent(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getRecent.
function onPhotosGetSizes(photo: Photo)
Called when there is a response from a call to flickr.people.getSizes.
function onPhotosGetUntagged(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getUntagged.
function onPhotosGetWithGeoData(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getWithGeoData.
function onPhotosGetWithoutGeoData(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.getWithoutGeoData.
function onPhotosRecentlyUpdated(resultsSet: ResultsSet,
minDate: Date)
Called when there is a response from a call to flickr.photos.recentlyUpdated
function onPhotosRemoveTag(tagId: Number)
Called when there is a response from a call to flickr.people.removeTag.
function onPhotosSearch(resultsSet: ResultsSet)
Called when there is a response from a call to flickr.people.search.
function onPhotosSetDates(photo: Photo)
Called when there is a response from a call to flickr.people.setDates.
function onPhotosSetMeta(photo: Photo)
Called when there is a response from a call to flickr.people.setMeta.
function onPhotosSetPerms(photo: Photo)
Called when there is a response from a call to flickr.people.setPerms.
function onPhotosSetTags(photo: Photo)
Called when there is a response from a call to flickr.people.setTags.
function onPhotosCommentsAddComment(comment: Comment,
photo: Photo)
Called when there is a response from a call to flickr.photos.comments.addComment
function onPhotosCommentsDeleteComment(comment: Comment)
Called when there is a response from a call to flickr.photos.comments.deleteComment
function onPhotosCommentsEditComment(comment: Comment)
Called when there is a response from a call to flickr.photos.comments.editComment
function onPhotosCommentsGetList(photo: Photo)
Called when there is a response from a call to flickr.photos.comments.getList.
function onPhotosGeoGetLocation(photo: Photo)
Called when there is a response from a call to flickr.photos.geo.getLocation
function onPhotosGeoGetPerms(photo: Photo)
Called when there is a response from a call to flickr.photos.geo.getPerms
function onPhotosGeoRemoveLocation(photo: Photo)
Called when there is a response from a call to flickr.photos.geo.removeLocation
function onPhotosGeoSetLocation(photo: Photo)
Called when there is a response from a call to flickr.photos.geo.setLocation
function onPhotosGeoSetPerms(photo: Photo)
Called when there is a response from a call to flickr.photos.geo.setPerms
function onPhotosLicensesGetInfo(licences: Array)
Called when there is a response from a call to flickr.photos.licenses.getInfo.
function onPhotosLicensesSetLicense(photo: Photo)
Called when there is a response from a call to flickr.photos.licenses.setLicense.
function onPhotosNotesAdd(photo: Photo,
note: Note)
Called when there is a response from a call to flickr.photos.notes.add
function onPhotosNotesDelete(noteId: String)
Called when there is a response from a call to flickr.photos.notes.delete
function onPhotosNotesEdit(note: Note)
Called when there is a response from a call to flickr.photos.notes.edit
function onPhotosetsAddPhoto(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.addPhoto
function onPhotosetsCreate(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.create
function onPhotosetsDelete(photosetId: Number)
Called when there is a response from a call to flickr.photosets.delete
function onPhotosetsEditMeta(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.editMeta
function onPhotosetsEditPhotos(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.editPhotos
function onPhotosetsGetContext(photo: Photo,
photoset: Photoset)
Called when there is a response from a call to flickr.photosets.getContext
function onPhotosetsGetInfo(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.getInfo
function onPhotosetsGetList(user: Person)
Called when there is a response from a call to flickr.photosets.getList
function onPhotosetsGetPhotos(photoset: Photoset,
request: FlashrRequest)
Called when there is a response from a call to flickr.photosets.getPhotos
function onPhotosetsOrderSets(user: Person)
Called when there is a response from a call to flickr.photosets.orderSets
function onPhotosetsRemovePhoto(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.removePhoto
function onPhotosetsCommentsAddComment(comment: PhotosetComment)
Called when there is a response from a call to flickr.photosets.comments.addComment
function onPhotosetsCommentsDeleteComment(commentId: String)
Called when there is a response from a call to flickr.photosets.comments.deleteComment
function onPhotosetsCommentsGetList(photoset: Photoset)
Called when there is a response from a call to flickr.photosets.comments.getList
function onPhotosetsCommentsEditComment(comment: PhotosetComment)
Called when there is a response from a call to flickr.photosets.comments.editComment
function onTagsGetListPhoto(photo: Photo)
Called when there is a response from a call to flickr.tags.tagsGetListPhoto.
function onTagsGetListUser(person: Person)
Called when there is a response from a call to flickr.tags.getListUser.
function onTagsGetListUserPopular(person: Person)
Called when there is a response from a call to flickr.tags.getListUserPopular.
function onTagsGetRelated(sourceTag: Tag)
Called when there is a response from a call to flickr.tags.tagsGetRelated.
function onTestEcho(params: Object)
Called when there is a response from a call to flickr.test.echo.
function onTestLogin(user: Person)
Called when there is a response from a call to flickr.test.login
function onTestNull()
Called when there is a response from a call to flickr.test.null
function onError(errorCode: Number,
errorDescription: String,
request: FlashrRequest)
Called when the Flickr API returns an error code..
function onAPIResponse(responseEvent: FlashrResponseEvent)
Internal function which deals with a response from a Flickr API call and forwards any relevant arguments to the relevant function.
function destroy():Void
Call this function to delete a FlashrResponse - it will unregister itself as a listener which should allow it to delete cleanly.
Class to define a listener for responses from the FlickrAPI.
private function callMethod(request: FlashrRequest):Void
Used internally to call a method on the flickr API.
Flashr is an ActionScript 2 wrapper for the Flickr API.
public function authGetFrob(authIsLoggingIn: Boolean):FlashrRequest
Calls flickr.auth.getFrob to get a frob to be used during authentication.
public function authLogin(perms: String)
Pops open a login window so that the user can authenticate with the flickr.com website.
public function authCheckToken(authToken: String):FlashrRequest
Calls flickr.auth.checkToken to get the credentials attached to an authentication token.
Class to describe a person from Flickr.
function getPublicContacts():Object
Gets a list of the public contacts that this user has (if Flashr.contactsGetPublicList or Flashr.contactsGetList has been called for this user.
public function contactsGetList(filter: String):FlashrRequest
Calls flickr.contacts.getList to get a list of contacts for the calling user.
public function contactsGetPublicList(userId: String):FlashrRequest
Calls flickr.contacts.getPublicList to get a list of contacts a user.
public function favoritesAdd(photoId: String):FlashrRequest
Calls flickr.favorites.add to add a photo to a user’s favorites list.
function getFavorites():Array
Gets a list of the favorite Photo’s that this user has.
Handles the search responses from flickr.com packaging them up with relevant information about the query.
public function favoritesGetList(userId: String,
extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.favorites.getList to get a list of the user’s favorite photos.
public function favoritesGetPublicList(userId: String,
extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.favorites.getPublicList to get a list of favorite public photos for the given user.
public function favoritesRemove(photoId: String):FlashrRequest
Calls flickr.favorites.remove to remove a photo from a user’s favorites list.
Class to describe a photo from Flickr.
Class to describe a group from Flickr.
function groupsPoolsAdd(photoId: String,
groupId: String):FlashrRequest
Add a photo to a group’s pool.
function groupsPoolsGetContext(photoId: String,
groupId: String):FlashrRequest
Gets next and previous photos for a photo in a group pool.
function getContextGroupPool(groupId: Number)
Get information about the context of this Photo in a given Photoset
function groupsPoolsGetGroups():FlashrRequest
Gets a list of groups to which you can add photos.
function getGroups():Array
Returns this Person’s _groups Array.
function groupsPoolsGetPhotos(groupId: String,
tags: String,
extras: String,
perPage: Number,
page: Number,
userId: String):FlashrRequest
Gets a list of pool photos for a given group, based on the permissions of the group and the user logged in (if any).
function getPhotos():Array
Get’s this Groups _pool
function interestingnessGetList(date: Date,
extras: String,
perPage: Number,
page: Number):FlashrRequest
Get the list of interesting photos for the most recent day or a user-specified date
function peopleFindByEmail(email: String):FlashrRequest
Calls flickr.people.findByEmail to get a user’s NSID, given their email address.
function peopleFindByUsername(username: String):FlashrRequest
Calls flickr.people.findByUsername to get a user’s NSID, given their username.
function peopleGetInfo(nsid: String):FlashrRequest
Calls flickr.people.getInfo to get information about a user.
function peopleGetPublicGroups(userId: String):FlashrRequest
Calls flickr.people.getPublicGroups to get the list of public groups a user is a member of.
function peopleGetPublicPhotos(nsid: String,
extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.people.getPublicPhotos to get a list of public photos for the given user.
private var _photos: Array
An Array containing references to all of this Person’s photos.
function peopleGetUploadStatus():FlashrRequest
Calls flickr.people.getUploadStatus to get information for the calling user related to photo uploads.
public var bandwidthMax: Number
The bandwidth this user has available, in bytes per month.
public var bandwidthUsed: Number
The bandwidth this user has used this month, in bytes.
public var filesizeMax: Number
The maximum size per file that this user can upload, in bytes.
function photosAddTags (photoId: String,
tags: String):FlashrRequest
Calls flickr.photos.addTags to add tags to a given photo.
function photosDelete (photoId: String):FlashrRequest
Calls flickr.photos.addTags to delete a photo from flickr.
function getPhotosets():Array
This Photos _photosets Array.
function photosGetContactsPhotos (count: Number,
justFriends: Number,
singlePhoto: Number,
includeSelf: Number,
extras: String):FlashrRequest
Calls flickr.photos.getContactsPhotos to fetch a list of recent photos from the calling users’ (authUser) contacts.
function photosGetContactsPublicPhotos (nsid: String,
count: Number,
justFriends: Number,
singlePhoto: Number,
includeSelf: Number,
extras: String):FlashrRequest
Calls flickr.photos.getContactsPublicPhotos to fetch a list of recent public photos from a users’ contacts.
function photosGetContext (photoId: String):FlashrRequest
Calls flickr.photos.getContext to return next and previous photos for a photo in a photostream.
function photosGetCounts (dates: String,
takenDates: String):FlashrRequest
Calls flickr.photos.getCounts to get a list of photo counts for the given date ranges for the calling user (authUser).
function photosGetExif (photoId: String,
secret: String):FlashrRequest
Calls flickr.photos.getExif to return a list of EXIF/TIFF/GPS tags for a given Photo.
function photosGetInfo (photoId: String,
secret: String):FlashrRequest
Calls flickr.photos.getInfo to get information about a Photo.
function photosGetNotInSet (extras: String,
perPage: Number,
page: Number,
privacyFilter: Number):FlashrRequest
Calls flickr.photos.getNotInSet to get a list of the calling users’ (authUser) photos that are not part of any sets.
function photosGetPerms (photoId: String):FlashrRequest
Calls flickr.photos.getPerms to get permissions for a photo.
function photosGetRecent (extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.photos.getRecent to get a list of the latest public photos uploaded to flickr.
function photosGetSizes (photoId: String):FlashrRequest
Calls flickr.photos.getRecent to get the available sizes for a photo.
private var _sizes: Array
The PhotoSizes that are associated with this photo.
Class to describe the size of a Photo from Flickr.
function getLargestAvailableSize(maxDimension: Number):PhotoSize
Use to get the biggest available version of this Photo.
function photosGetUntagged (extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.photos.getUntagged to get a list of the calling users’ authUser photos with no tags.
function photosGetWithGeoData (params):FlashrRequest
Calls flickr.photos.getWithGeoData to get a list of the calling user’s authUser geo-tagged photos.
function photosGetWithoutGeoData (params):FlashrRequest
Calls flickr.photos.getWithGeoData to get a list of the calling user’s authUser photos which haven’t been geo-tagged.
function photosRecentlyUpdated(minDate: Date,
extras: String,
perPage: Number,
page: Number):FlashrRequest
Calls flickr.photos.recentlyUpdated to get a list of the currently calling users’ authUser photos that have been recently created or which have been recently modified.
Class to describe a tag on a photo on flickr.com
function photosRemoveTag (tagId: Number):FlashrRequest
Calls flickr.photos.removeTag to remove a tag from a photo.
function photosSearch (params):FlashrRequest
Calls flickr.photos.search to get a list of photos matching some criteria.
function photosSetDates (photoId: String,
datePosted: Date,
dateTaken: Date,
dateTakenGran: Number):FlashrRequest
Calls flickr.photos.setDates to set one or both of the dates for a photo..
function photosSetMeta (photoId: String,
title: String,
description: String):FlashrRequest
Calls flickr.photos.setMeta to set the meta information for a photo.
function photosSetTags (photoId: String,
tags: String):FlashrRequest
Calls flickr.photos.setTags to set the tags for a photo.
Class to describe a comment on a photo on Flickr.
function photosCommentsAddComment(photoId: String,
comment: String):FlashrRequest
Calls flickr.photos.comments.addComment to add a comment to a photo as the currently authenticated user (authUser).
function photosCommentsDeleteComment(commentId: String):FlashrRequest
Calls flickr.photos.comments.deleteComment to delete a comment as the currently authenticated user (authUser).
function photosCommentsEditComment(commentId: String,
commentText: String):FlashrRequest
Calls flickr.photos.comments.editComment to edit the text of a comment as the currently authenticated user (authUser).
function photosCommentsGetList (photoId: String):FlashrRequest
Calls flickr.photos.comments.getList to get the comments for a photo.
function getComments():Array
Returns an Array of all the Comments left on this Photo.
Class to describe the geographical location of a Photo on flickr.com.
function photosGeoGetLocation(photoId: String):FlashrRequest
Calls flickr.photos.geo.getLocation to get the GeoLocation for a Photo.
public var location: GeoLocation
The GeoLocation of this Photo.
Class to define the permissions to geographical data for a given Photo
function photosGeoGetPerms(photoId: String):FlashrRequest
Calls flickr.photos.geo.getPerms to get permissions for who may view geo data for a Photo
var geoPerms: GeoPerms
GeoPerms describing who may view geo data for a photo.
function photosGeoRemoveLocation(photoId: String):FlashrRequest
Calls flickr.photos.geo.removeLocation to the geo data GeoLocation associated with a Photo.
function photosGeoSetLocation(photoId: String,
location: GeoLocation):FlashrRequest
Calls flickr.photos.geo.setLocation to set the GeoLocation (latitude and longitude and, optionally, the accuracy level) for a Photo.
function photosGeoSetPerms(photoId: String,
geoPerms: GeoPerms):FlashrRequest
Calls flickr.photos.geo.setPerms to set the permission for who may view the geo data associated with a Photo
Represents one of the possible Licences on flickr.com
function photosLicensesGetInfo():FlashrRequest
Fetches a list of availabale photo licenses for Flickr
function photosLicensesSetLicense(photoId: String,
licenseId: Number):FlashrRequest
Sets the license for a photo.
Class to describe a note on a photo on Flickr.
function photosNotesAdd(photoId: String,
noteX: Number,
noteY: Number,
noteW: Number,
noteH: Number,
noteText: String)
Add a Note to a Photo.
function photosNotesDelete(noteId: String)
Delete a Note from a Photo.
function photosNotesEdit(noteId: String,
noteX: Number,
noteY: Number,
noteW: Number,
noteH: Number,
noteText: String)
Edit a Note on a Photo.
private var _photos: Array
Private array of Photos in this Photoset (empty until Flashr.photosetsGetPhotos is called or indivdual Photos are added to the set via Flashr.photosetsAddPhoto).
function photosetsAddPhoto(photosetId: String,
photoId: String):FlashrRequest
Add a photo to the end of an existing photoset.
function getPhotos():Array
Get’s this Photosets _photos Array.
Describes a Photoset on flickr.com
function photosetsCreate(title: String,
description: String,
primaryPhotoId: Number):FlashrRequest
Create a new photoset for the calling user (authUser).
function photosetsDelete(photosetId: String):FlashrRequest
Delete a photoset.
function photosetsEditMeta(photosetId: String,
title: String,
description: String):FlashrRequest
Modify the meta-data for a Photoset.
function photosetsEditPhotos(photosetId: String,
primaryPhotoId: Number,
photoIds: Array):FlashrRequest
Modify the photos in a photoset.
function photosetsGetContext(photoId: String,
photosetId: String):FlashrRequest
Returns next and previous photos for a photo in a set.
function getContextPhotoset(photosetId: Number)
Get information about the context of this Photo in a given Photoset
function photosetsGetList(userId: String):FlashrRequest
Gets the photosets belonging to the specified user.
function getPhotosets():Array
Returns this Person’s _photosets Array.
function photosetsGetPhotos(photosetId: String,
extras: String,
privacyFilter: Number):FlashrRequest
Get the list of photos in a set.
function photosetsOrderSets(photosetIds: Array):FlashrRequest
Set the order of photosets for the calling user.
function photosetsRemovePhoto(photosetId: String,
photoId: String):FlashrRequest
Remove a photo from a photoset.
Class to describe a comment on a Photoset on Flickr.
public var photoset: Photoset
The Photoset that this comment is on.
function photosetsCommentsAddComment(photosetId: String,
comment: String):FlashrRequest
Add a comment to a photoset.
function photosetsCommentsDeleteComment(commentId: String):FlashrRequest
Delete a photoset comment as the currently authenticated user.
function getComments()
Get’s the _comments Array containing all of the comments that have been made on this Photoset (providing that Flashr.photosetsCommentsGetList has been called first).
function getTags():Object
Returns an object containing all the tags’s that are associated with this Photo.
public function tagsGetListPhoto(photoId: String):FlashrRequest
Calls flickr.tags.getListPhoto to get the tag list for a given photo.
public function tagsGetListUser(userId: String):FlashrRequest
Calls flickr.tags.getListUser to get the tag list for a given user (or the currently logged in user).
public function tagsGetListUserPopular(userId: String,
count: Number):FlashrRequest
Calls flickr.tags.getListUserPopular to get the popular tags for a given user (or the currently logged in user).
public function tagsGetRelated(tag: String):FlashrRequest
Calls flickr.tags.getRelated to get a list of tags ‘related’ to the given tag, based on clustered usage analysis.
public var relatedTags: Object
An object containing a list of tags that are related to this one, based on clustered usage analysis.
public function testEcho():FlashrRequest
Calls flickr.test.echo - forwards any arguments on to the Flickr API
public function testLogin():FlashrRequest
Calls flickr.test.login - A testing method which checks if the caller is logged in then returns their username.
public function testNull():FlashrRequest
Null test
Class to hold all the information that is dispatched as an event from Flashr when there is a response to a request.