loginUser
This method allows you to create an authenticated session to be able to use methods which need authentication
Authentication
This method does requires authentification using login/password. This method is not available for Partner API. Business API can only authenticate under their own fotolia account. Developer API can authenticate under any fotolia account.
Arguments
| Argument | Type | Element (array) | Valid Values | Default Value | Detail |
|---|---|---|---|---|---|
api_key |
string | Valid Values | required | you need a valid api key to use the API | |
login |
string | existing login | required | User Login | |
pass |
string | password corresponding to login | required | User Password |
Returned Values
| Element (path) | Name | Type | Description |
|---|---|---|---|
| / | session_id |
string | authenticated session id (needed for methods needed authentication) |
Example Query
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>xmlrpc.loginUser</methodName>
<params>
<param>
<value>
<string>YOUR_API_KEY</string>
</value>
</param>
<param>
<value>
<string>LOGIN</string>
</value>
</param>
<param>
<value>
<string>PASSWORD</string>
</value>
</param>
</params>
</methodCall>
Example Response
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>session_id</name>
<value>
<string>SESSION_ID</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.
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.
4000: Login Failed- login and password does not match or member not found.
4001: Invalid User- This user has no permission to login / User has been deleted.
4002: Bad Login or Password- The login or password sent is not correct (i.e. : too long, too short, bad caracters ...).

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