addToUserGallery
This methods allows you to add a content to your default lightbox or any of your existing galleries.
Authentication
This method requires authentication.
Arguments
| Argument | Type | Valid Values | Default Value | Detail |
|---|---|---|---|---|
api_key |
string | Valid Values | required | you need a valid api key to use the API |
session_id |
string | Valid session ID | required | authentified session ID( use loginUser to create a session ID) |
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 |
|---|---|---|---|
| / | addtousergallery |
string | Returns SUCCESS if the content has been added |
Example Query
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>xmlrpc.addToUserGallery</methodName>
<params>
<param>
<value>
<string>YOUR_API_KEY</string>
</value>
</param>
<param>
<value>
<string>VALID_SESSION_ID</string>
</value>
</param>
<param>
<value>
<string>VALID_CONTENT_ID</string>
</value>
</param>
<param>
<value>
<string>VALID_GALLERY_ID</string>
</value>
</param>
</params>
</methodCall>
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>addtousergallery</name>
<value>
<string>SUCCESS</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
Error Codes
001: Service currently unavailable- The requested service is temporarily unavailable.
002: Failed to parse request- The XML-RPC request document 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 ID- The session ID passed is missing. A valid session ID is needed to access this method
021: Invalid Session ID- The session ID passed is not valid. Please login to get a valid session ID.
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.
101: Invalid Media ID- The media ID passed is not valid or doesn't correspond to any media.
2401: Invalid Gallery ID- The Gallery ID passed is not valid or the gallery doesn't belong to the user.

Fotolia US
Fotolia España
Fotolia France
Fotolia UK
Fotolia Deutschland
Fotolia Italia
Fotolia Portugal
Fotolia Brasil
Fotolia 日本