<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$hosts = array("ns.domena.com","ns2.domena.com", "ns3.domena.com","ns4.domena.com", "ns5.domena.com");foreach($hosts as $host){ $ns[]["hostname"] = $host;}$params = array ( "data" => array ( "ssid" => $token, "order" => array ( "type" => "Modify_Domain", "domain" => "domena-12.or.af", "params" => array ( "contacts" => array ( "admin" => array ( "regid" => "G-000001", ), "tech" => array ( "regid" => "G-000001", ), ), "ns" => array ( "hosts" => $ns, ) "statuses" => array ("clientTransferProhibited"), "params" => array ( "authid" => "ukulele" ) ) ) ));$response = $client->__call("Make_Order",$params);?> OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )
<?php$client = new SoapClient( null, array( "location" => "https://PRODUCTION/soap/cmd.php", "uri" => "http://PRODUCTION/soap" ) );$params = array ( "data" => array ( "login" => "demo", "password" => "password", ));$response = $client->__call("Login",$params);$token = $response["data"]["ssid"];unset($params);$hosts = array("ns.domena.com","ns2.domena.com", "ns3.domena.com","ns4.domena.com", "ns5.domena.com");foreach($hosts as $host){ $ns[]["hostname"] = $host;}$params = array ( "data" => array ( "ssid" => $token, "order" => array ( "type" => "Modify_Domain", "domain" => "domena-12.or.af", "params" => array ( "contacts" => array ( "admin" => array ( "regid" => "G-000001", ), "tech" => array ( "regid" => "G-000001", ), ), "ns" => array ( "hosts" => $ns, ) "statuses" => array ("clientTransferProhibited"), "params" => array ( "authid" => "ukulele" ) ) ) ));$response = $client->__call("Make_Order",$params);?>