withVectorsTab-97x42
We's got 19,733,509 images, yo!

API Access

API Documentation - loginUser

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;

Authentication

This method does not require authentication.

Arguments

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

Returned Values

Returns the session id to use for this user, needed for methods that require authentication

Example Query


<?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>

Example Response


<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
  <params>
    <param>
      <value>SESSION_ID</value>
    </param>
  </params>
</methodResponse>