Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parserutils.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parserutils.php on line 421

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parserutils.php on line 594

Deprecated: Function split() is deprecated in /home/easyat/httpdocs/wiki/inc/auth.php on line 154
api:php_example [Easy Antispam Wiki]
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/easyat/httpdocs/wiki/inc/template.php on line 302
Easy Antispam
| current status & blog | support | about us
   Home -> About Us -> Wiki

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/parser.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/lexer.php on line 299

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 24

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 51

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 215

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 243

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 305

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 338

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/handler.php on line 585

Deprecated: Function split() is deprecated in /home/easyat/httpdocs/wiki/inc/parser/metadata.php on line 296

Deprecated: Assigning the return value of new by reference is deprecated in /home/easyat/httpdocs/wiki/inc/parser/xhtml.php on line 918

PHP Example

<?php

$client = new SoapClient("https://manage.easyantispam.com/api/easapi.wsdl");

$u = 'account email address';
$p = 'account password';

$response = $client->listDomains($u,$p,'server hostname');

print $response . "\n";

?>

The above example uses PHP 5 with the SOAP extension enabled to make a client connection to the Easy Antispam API. This particular example calls the listDomains function to return the current list of domains for the specified server and then prints that list.

Discussion

Enter your comment: