API Commands
[All Commands]

Command: WorldHosting_List_Mailboxes



command WorldHosting_List_Mailboxes

Get list of existing mailboxes

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name

Output Responses:

string status ok | error
array data Details about your request
 
array mailboxes list of mailboxes
string mailbox e-mail address of the mailbox
array copy_to list of e-mail addresses to send copy of incoming e-mails

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'domain.or.af',
  ),
);

$response $client->__call("WorldHosting_List_Mailboxes",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af ) ) OUTPUT: Array ( [status] => ok [data] => Array ( [mailboxes] => Array ( [0] => Array ( [mailbox] => info@domain.or.af [copy_to] => Array ( ) ) [1] => Array ( [mailbox] => sales@domain.or.af [copy_to] => Array ( [0] => info@domain.or.af ) ) ) ) )

API Manual - version from 2019-07-31 15:54:31