Method: user/getUserData
This methods return data for logged user.
Authentication
This method requires authentication with a valid session token.
HTTP method
This method is called with HTTP method GET.
Arguments
| Argument | Type | Valid Values | Default Value | Detail |
|---|
Returned Values
| Element (path) | Name | Type | Description | ||
|---|---|---|---|---|---|
| / | id |
int | user unique ID | ||
| / | language_id |
int | user language ID | ||
| / | language_name |
string | user language name | ||
| / | nb_credits |
float | user total credit number | / | nb_credits_localized |
string | user total credit number, formatted using user's locale |
| / | credit_value |
float | user credit value | ||
| / | currency_name |
string | user credit currency name | ||
| / | currency_symbol |
string | user credit currency symbol |
Example Query
GET http://API_KEY:SESSION_TOKEN@api.fotolia.com/Rest/1/user/getUserData
Example Response
{
"id":1,
"language_id":3,
"language_name":"English",
"nb_credits":0,
"credit_value":0.68,
"currency_name":"Pound",
"currency_symbol":"\u00a3"
}
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.


