Method: user/removeFromUserGallery
This methods allows you to remove a content from your default lightbox or any of your existing galleries.
Authentication
This method requires authentication with a valid session token.
HTTP method
This method is called with HTTP method POST.
Arguments
| Argument | Type | Valid Values | Default Value | Detail | ||
|---|---|---|---|---|---|---|
content_id |
int | required | Id of the content to add to the gallery | |||
id |
string | 32 car. max | none | Id of the gallery |
Returned Values
| Element (path) | Name | Type | Description | ||
|---|---|---|---|---|---|
| / | removefromusergallery |
string | Returns SUCCESS if the content has been removed |
Example Query
POST http://API_KEY:SESSION_TOKEN@api.fotolia.com/Rest/1/user/removeFromUserGallery
content_id=0&id=VALID_GALLERY_ID
Example Response
{
"removefromusergallery":"SUCCESS"
}
Error Codes
001: Service currently unavailable- The requested service is temporarily unavailable.
002: Failed to parse request- The request could not be parsed.
010: Missing API Key- The API key passed is missing.
011: Invalid API Key- The API key passed is not valid or has expired.
020: Missing Session Token- The session token passed is missing. A valid session token is needed to access this method
021: Invalid Session Token- The session token passed is not valid. Please login to get a valid session token.
031: Invalid Method- This method does not exist in the method list.
032: Method not Available- This method is not available for this API Key.
2401: Invalid Gallery ID- The Gallery ID passed is not valid or the gallery doesn't belong to the user.


