The App GardenCreate an App API Documentation Feeds What is the App Garden? |
flickr.photos.licenses.getAvailable
Fetches the available licenses of a photo.
Authentication
This method does not require authentication.
Arguments
api_key(Required)- Your API application key. See here for more details.
photo_id(Required)- The photo to get the available licenses for.
owner_id(Optional)- The NSID of the required photo"s owner.
Example Response
<rsp stat="ok"> <available_licenses> <license id="0" name="All Rights Reserved" url="https://www.flickrhelp.com/hc/en-us/articles/10710266545556-Using-Flickr-images-shared-by-other-members" /> <license id="4" name="Attribution License" url="https://creativecommons.org/licenses/by/2.0/" /> <license id="6" name="Attribution-NoDerivs License" url="https://creativecommons.org/licenses/by-nd/2.0/" /> </available_licenses> </rsp>Returns a list of available licenses for the photo and user.
Error Codes
1: Photo not found- The specified id was not the id of a valid photo.
2: User not found- The specified id was not the id of a valid user.
100: Invalid API Key- The API key passed was not valid or has expired.
105: Service currently unavailable- The requested service is temporarily unavailable.
106: Write operation failed- The requested operation failed due to a temporary issue.
111: Format "xxx" not found- The requested response format was not found.
112: Method "xxx" not found- The requested method was not found.
114: Invalid SOAP envelope- The SOAP envelope send in the request could not be parsed.
115: Invalid XML-RPC Method Call- The XML-RPC request document could not be parsed.
116: Bad URL found- One or more arguments contained a URL that has been used for abuse on Flickr.