public class LicensesInterface
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
METHOD_GET_INFO |
static java.lang.String |
METHOD_SET_LICENSE |
| Constructor and Description |
|---|
LicensesInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<License> |
getInfo()
Fetches a list of available photo licenses for Flickr.
|
void |
setLicense(java.lang.String photoId,
int licenseId)
Sets the license for a photo.
|
public static final java.lang.String METHOD_GET_INFO
public static final java.lang.String METHOD_SET_LICENSE
public LicensesInterface(java.lang.String apiKey,
java.lang.String sharedSecret,
Transport transportAPI)
public java.util.Collection<License> getInfo() throws FlickrException
FlickrExceptionpublic void setLicense(java.lang.String photoId,
int licenseId)
throws FlickrException
photoId - The photo to update the license for.licenseId - The license to apply, or 0 (zero) to remove the current license.FlickrException