The App GardenCreate an App API Documentation Feeds What is the App Garden? |
This is the specification for building photo uploader applications.
It works outside the normal Flickr API framework because it involves sending binary files over the wire.
Uploading apps can call the flickr.people.getUploadStatus method in the regular API to obtain file and bandwidth limits for the user.
Photos should be POSTed to the following URL:
http://api.flickr.com/services/upload/
This method requires authentication with 'write' permission.
For details of how to obtain authentication tokens and how to sign calls, see the authentication api spec. Note that the 'photo' parameter should not be included in the signature. All other POST parameters should be included when generating the signature.
phototitle (optional)description (optional)tags (optional)is_public, is_friend, is_family (optional)safety_level (optional)content_type (optional)hidden (optional)When an upload is successful, the following xml is returned:
<photoid>1234</photoid>
photoid is the id of the new photo. This response is formatted in the REST API response style.
If the upload fails, a REST API error response is returned. The following error codes are possible:
2: No photo specified3: General upload failure4: Filesize was zero5: Filetype was not recognised6: User exceeded upload limit96: Invalid signature97: Missing signature98: Login failed / Invalid auth token99: User not logged in / Insufficient permissions100: Invalid API Key105: Service currently unavailable116: Bad URL foundWhen a set of photos have been uploaded, direct the user to this url:
http://www.flickr.com/photos/upload/edit/?ids=1,2,3
...where "1,2,3" is a comma separated list of successful upload ids.