<?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, "order" => array( "domain" => "domain.or.af", "type" => "Certificate_Request", "params" => array( "contacts" => array ( "admin" => array ( "id" => "G-000001" ) ), "period" => 1, "params" => array( "approver_email" => "admin", "ssl_type" => "rapidssl", "webserver_type" => "apache2", "hash_algorithm" => "SHA2-256", "csr" => "-----BEGIN CERTIFICATE----- ....... -----END CERTIFICATE----" ) ) ) ));$response = $client->__call("Make_Order", $params);?> OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )
<?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, "order" => array( "domain" => "domain.or.af", "type" => "Certificate_Request", "params" => array( "contacts" => array ( "admin" => array ( "id" => "G-000001" ) ), "period" => 1, "params" => array( "approver_email" => "admin", "ssl_type" => "rapidssl", "webserver_type" => "apache2", "hash_algorithm" => "SHA2-256", "csr" => "-----BEGIN CERTIFICATE----- ....... -----END CERTIFICATE----" ) ) ) ));$response = $client->__call("Make_Order", $params);?>