Add a domain to the second market

				
					StructOperationResponse SecMarketAdd(string idSession, string plateform, string domain, array params) 
			

Add a domain for sale on the second market.

REQUIRED

  • idSession string (32)
    Session ID.
  • plateform string (255)
    The plateform where the sale must be added (only “SEDO“ is available for now).
  • domain string (255)
    Domain name.
  • params array
    {

    “price“: The selling price of the domain,

    “currency“: The currency of the sale

    }

An Object of type StructOperationResponse

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
$params = array('price' => '1234', 'currency' => 'EUR'); 
 
try
{
      $idSession = $clientSOAP->sessionOpen("XX000", "XX000", "EN");      
      $StructOperationResponse = $clientSOAP->SecMarketAdd($idSession, "SEDO", "my-domain.com", $params);
 
      print_r($StructOperationResponse);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->sessionClose($idSession);
}
?>