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