Difference between revisions of "PHPCheckNumMessagesExample"
From Rackspace Email & Apps API
(New page: <pre> <?php require_once('nusoap.php'); $client = new soapclient('https://secure.webmail.us/soap/soap_server.php?wsdl', true); $err = $client->getError(); if ($err) { die("ERROR: $...) |
(No difference)
|
Latest revision as of 15:58, 25 August 2008
<?php require_once('nusoap.php'); $client = new soapclient('https://secure.webmail.us/soap/soap_server.php?wsdl', true); $err = $client->getError(); if ($err) { die("ERROR: $err"); } $res = $client->call('GetUserNumMessages', array('ResellerUsername' => 'someadmin', 'ResellerPassword' => 'adminpassword', 'HostName' => 'webmail.us', 'UserID' => 'someperson')); if ($client->fault) { echo "FAULT: "; print_r($res); exit; } $err = $client->getError(); if ($err) { die("ERROR2: $err"); } print_r($res); ?>