Current section

Files

Jump to
flickrex lib flickr getMethodInfo flickr.galleries.addPhoto.json
Raw

lib/flickr/getMethodInfo/flickr.galleries.addPhoto.json

{
"arguments": {
"argument": [
{
"_content": "Your API application key. <a href=\"/services/api/misc.api_keys.html\">See here</a> for more details.",
"name": "api_key",
"optional": 0
},
{
"_content": "The ID of the gallery to add a photo to. Note: this is the compound ID returned in methods like <a href=\"/services/api/flickr.galleries.getList.html\">flickr.galleries.getList</a>, and <a href=\"/services/api/flickr.galleries.getListForPhoto.html\">flickr.galleries.getListForPhoto</a>.",
"name": "gallery_id",
"optional": "0"
},
{
"_content": "The photo ID to add to the gallery",
"name": "photo_id",
"optional": "0"
},
{
"_content": "A short comment or story to accompany the photo.",
"name": "comment",
"optional": "1"
},
{
"_content": "If specified, return updated details of the gallery the photo was added to",
"name": "full_response",
"optional": "1"
}
]
},
"errors": {
"error": [
{
"_content": "One or more required parameters was not included with your API call.",
"code": "1",
"message": "Required parameter missing"
},
{
"_content": "That gallery could not be found.",
"code": "2",
"message": "Invalid gallery ID"
},
{
"_content": "The requested photo could not be found.",
"code": "3",
"message": "Invalid photo ID"
},
{
"_content": "The comment body could not be validated.",
"code": "4",
"message": "Invalid comment"
},
{
"_content": "Unable to add the photo to the gallery.",
"code": "5",
"message": "Failed to add photo"
},
{
"_content": "Only public photos can be added to a gallery",
"code": "6",
"message": "Photo not public"
},
{
"_content": "Gallery owner is same as the photo owner.",
"code": "7",
"message": "Cannot add your own photo"
},
{
"_content": "Photo is already in the gallery",
"code": "8",
"message": "Photo in gallery"
},
{
"_content": "The photo owner opted this photo out of this galleries",
"code": "9",
"message": "Photo owner opted out"
},
{
"_content": "Gallery has the maximum allowed items.",
"code": "10",
"message": "Gallery is full"
},
{
"_content": "Only Safe photos can be added to a gallery.",
"code": "11",
"message": "Photo not safe"
},
{
"_content": "The photo owner has blocked the gallery owner.",
"code": "12",
"message": "Gallery owner blocked"
},
{
"_content": "The photo owner has opted out of all galleries.",
"code": "13",
"message": "Photo owner opted out"
},
{
"_content": "SSL is required to access the Flickr API.",
"code": 95,
"message": "SSL is required"
},
{
"_content": "The passed signature was invalid.",
"code": 96,
"message": "Invalid signature"
},
{
"_content": "The call required signing but no signature was sent.",
"code": 97,
"message": "Missing signature"
},
{
"_content": "The login details or auth token passed were invalid.",
"code": 98,
"message": "Login failed / Invalid auth token"
},
{
"_content": "The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions.",
"code": 99,
"message": "User not logged in / Insufficient permissions"
},
{
"_content": "The API key passed was not valid or has expired.",
"code": 100,
"message": "Invalid API Key"
},
{
"_content": "The requested service is temporarily unavailable.",
"code": 105,
"message": "Service currently unavailable"
},
{
"_content": "The requested operation failed due to a temporary issue.",
"code": 106,
"message": "Write operation failed"
},
{
"_content": "The requested response format was not found.",
"code": 111,
"message": "Format \"xxx\" not found"
},
{
"_content": "The requested method was not found.",
"code": 112,
"message": "Method \"xxx\" not found"
},
{
"_content": "The SOAP envelope send in the request could not be parsed.",
"code": 114,
"message": "Invalid SOAP envelope"
},
{
"_content": "The XML-RPC request document could not be parsed.",
"code": 115,
"message": "Invalid XML-RPC Method Call"
},
{
"_content": "One or more arguments contained a URL that has been used for abuse on Flickr.",
"code": 116,
"message": "Bad URL found"
}
]
},
"method": {
"description": {
"_content": "Add a photo to a gallery."
},
"name": "flickr.galleries.addPhoto",
"needslogin": 1,
"needssigning": 1,
"requiredperms": "2"
},
"stat": "ok"
}