.md Productsmd mdEmail® Registration API

(response object) emailUserLogin($session_id, $domain_name, $username, $password)

An api user can authenticate their email users through the api using emailUserLogin. https://api.max.md.eval.max.md/emailUserLogin.php?wsdl.

Response

The response comes in a soap object containing three elements.
  (string) code - A response code. This will be "000" if the user login was successful
  (string) message - A description of the response code
  (array) values - This will be empty. It may be used for more at a later time.

Sample Code (using NuSoap)

$soap = new soapclient("https://api.max.md.eval.max.md/emailUserLogin.php?wsdl",array( 'trace' => true, 'exceptions' => true, ));
$response = $soap->emailUserLogin($session_id, $domain_name, $username, $password);
if ($response->code == '000') {
  //code for when a user is valid;
}else{
  echo $response->message;
}

The xml for the WSDL can be found here