getUserStats
This methods returns statistics for logged user.
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 | existing session ID | required | authentified session ID( use loginUser to create a session ID) |
Returned Values
| Element (path) | Name | Type | Description |
|---|---|---|---|
| / | nb_media_uploaded |
int | number of uploaded media |
| / | nb_media_accepted |
int | number of accepted media |
| / | nb_media_purchased |
int | number of purchased media |
| / | nb_media_sold |
int | number of sold media |
| / | ranking_absolute |
int | absolute ranking ( top sellers ever) |
| / | ranking_relative |
int | relative ranking ( top seller in 7 days) |
Example Query
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>xmlrpc.getUserStats</methodName>
<params>
<param>
<value>
<string>YOUR_API_KEY</string>
</value>
</param>
<param>
<value>
<string>SESSION_ID</string>
</value>
</param>
</params>
</methodCall>
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>nb_media_uploaded</name>
<value>
<int>40</int>
</value>
</member>
<member>
<name>nb_media_accepted</name>
<value>
<int>2</int>
</value>
</member>
<member>
<name>nb_media_purchased</name>
<value>
<int>66</int>
</value>
</member>
<member>
<name>nb_media_sold</name>
<value>
<int>25</int>
</value>
</member>
<member>
<name>ranking_absolute</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>ranking_relative</name>
<value>
<int>1</int>
</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.



Fotolia US
Fotolia España
Fotolia France
Fotolia UK
Fotolia Deutschland
Fotolia Italia
Fotolia Portugal
Fotolia Polska
Fotolia Brasil
Fotolia 日本
Fotolia Europe
Fotolia Turkey
Fotolia China