This method allows you to log in a user. You will be returned a session id that will be required to use any of the methods that require authentication. You will need to set the header "Cookie" to Photoxpress=session_id where session_id is the session id that is returned by loginUser. You will also need to pass the session_id parameter as required.
Cookie: Photoxpress=session_id;
This method does not require authentication.
| Argument | Type | Element (array) | Valid Values | Default Value | Detail | |||||
|---|---|---|---|---|---|---|---|---|---|---|
api_key |
string | none | you need a valid api key to use the API | |||||||
login |
string | valid login | none | the login for the user you wish to log in | ||||||
pass |
string | valid password | none | the password for the user you wish to log in |
Returns the session id to use for this user, needed for methods that require authentication
<?xml version="1.0" encoding="utf-8"?>
<methodCall>
<methodName>user.loginUser</methodName>
<params>
<param>
<value>
<string>YOUR_API_KEY</string>
</value>
</param>
<param>
<value>
<string>USER_LOGIN</string>
</value>
</param>
<param>
<value>
<string>USER_PASSWORD</string>
</value>
</param>
</params>
</methodCall>
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>SESSION_ID</value>
</param>
</params>
</methodResponse>
Information
Contact
Copyright © PhotoXpress LLC 2009-2011 - All rights reserved