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:listdomains [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 'CST/-6.0/no 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

Function: listDomains

The listDomains function returns the list of domains that are currently assigned to a specified server.

Syntax

listDomains (email, password, server)

Parameters

  • email (string) - Authenticating user's email address
  • password (string) - Authenticating user's password
  • server (string) - Server hostname to return attached domains for

Results

This function will return a string containing different results depending on if the call was successful or if an error was found.

Error Results

  • 0 - Login failed: The email address/password combination was incorrect
  • 1 - Access to Server Denied: The specified server hostname is not assigned to the authenticated account

Success Results

A sucessful call to this function will return a comma-separated list of the domains assigned to the specified server hostname. If no domains are assigned, the result will be blank.

Discussion

Enter your comment: