<?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' => 'example.com', 'record' => array ( 'id' => 172, 'type' => 'MX', 'content' => 'smtp.another.com', 'prio' => 4, 'ttl' => 1800, ), ),);$response = $client->__call("Modify_DNS_Record",$params); INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => example.com [record] => Array ( [id] => 172 [type] => MX [content] => smtp.another.com [prio] => 4 [ttl] => 1800 ) ) ) OUTPUT: Array ( [status] => ok )
<?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' => 'example.com', 'record' => array ( 'id' => 172, 'type' => 'MX', 'content' => 'smtp.another.com', 'prio' => 4, 'ttl' => 1800, ), ),);$response = $client->__call("Modify_DNS_Record",$params);