Packagecom.adobe.webapis.flickr.methodgroups
Classpublic class Licenses

Contains the methods for the Licenses method group in the Flickr API. Even though the events are listed here, they're really broadcast from the FlickrService instance itself to make using the service easier.



Public Methods
 MethodDefined by
  
Construct a new Licenses "method group" class
Licenses
  
getInfo():void
Fetches a list of availabale photo licenses for Flickr.
Licenses
  
setLicense(photo_id:String, license_id:int):void
Sets the license for a photo.
Licenses
Events
 EventSummaryDefined by
   Broadcast as a result of the getInfo method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains a "licenses" array of License instances When success is false, contains an "error" FlickrError instance Licenses
   Broadcast as a result of the setLicense method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, an empty object When success is false, contains an "error" FlickrError instance Licenses
Constructor detail
Licenses()constructor
public function Licenses(service:FlickrService)

Construct a new Licenses "method group" class

Parameters
service:FlickrService — The FlickrService this method group is associated with.
Method detail
getInfo()method
public function getInfo():void

Fetches a list of availabale photo licenses for Flickr.

See also

setLicense()method 
public function setLicense(photo_id:String, license_id:int):void

Sets the license for a photo. This method requires authentication with WRITE permission.

Parameters
photo_id:String — The photo to update the license for.
 
license_id:int — The license to apply, or 0 (zero) to remove the current license.

See also

Event detail
photosLicensesGetInfoevent 
Event object type: com.adobe.webapis.flickr.events.FlickrResultEvent

Broadcast as a result of the getInfo method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains a "licenses" array of License instances When success is false, contains an "error" FlickrError instance

See also

getInfo
com.adobe.service.flickr.FlickrError
photosLicensesSetLicenseevent  
Event object type: com.adobe.webapis.flickr.events.FlickrResultEvent

Broadcast as a result of the setLicense method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, an empty object When success is false, contains an "error" FlickrError instance

See also

setLicense
com.adobe.service.flickr.FlickrError