<?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 ( "domain" => "domain.or.af", "type" => "PremiumCreate_Domain", "params" => array ( "registrant" => array ( "id" => "G-000001", ) "contacts" => array ( "admin" => array ( "id" => "G-000001", ), "tech" => array ( "id" => "G-000001", ), ), "ns" => array ( "hosts" => $ns, ), "params" => array ( "authid" => "ukulele", ) "period" => 1 ) ) ));$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 ( "domain" => "domain.or.af", "type" => "PremiumCreate_Domain", "params" => array ( "registrant" => array ( "id" => "G-000001", ) "contacts" => array ( "admin" => array ( "id" => "G-000001", ), "tech" => array ( "id" => "G-000001", ), ), "ns" => array ( "hosts" => $ns, ), "params" => array ( "authid" => "ukulele", ) "period" => 1 ) ) ));$response = $client->__call("Make_Order",$params);?>