DomainAuthID

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Returns the authorization code to transfer the domain name to another registrar or to another client account

StructOperationResponse domainAuthID(string idSession, string domain, int sendtoregistrant)

The code will be transmitted by Netim to the recipient by email (either the registrant or the reseller)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
int sendtoregistrant Recipient 0 for the reseller / 1 for the registrant


Return

A structure StructOperationResponse


Notes

The code will be changed each time.
The code can be transmitted directly to the registrant by the registry. (See Category:Tld)


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse = $clientSOAP->domainAuthID($idSession, "netim.com",0); 
 
      print_r($StructOperationResponse);
 
      $StructOperationResponse = $clientSOAP->domainAuthID($idSession, "netim.net",1); 
 
      print_r($StructOperationResponse); 
 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>


Release Runtime
API > 1.0 Asynchronous


Description

Returns the authorization code to transfer the domain name to another registrar

int domainAuthID(string idSession, string domain, int sendtoregistrant)

The code will be transmitted by Netim to the recipient by email (either the registrant, either the reseller)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) domain Domain name
int sendtoregistrant Recipient 0 for the reseller / 1 for the registrant


Return

A tracking ID


Notes

The code will be changed each time.
The code can be transmitted directly to the registrant by the registry. See Category:Tld


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $authID = $clientSOAP->domainAuthID($idSession, "netim.com",0); 
      echo($authID); 
 
      $authID = $clientSOAP->domainAuthID($idSession, "netim.net",1); 
      echo($authID); 
 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
int authID; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      authID = port.domainAuthID(idSession, "netim.at",0); 
      System.out.println(authID); 
 
authID = port.domainAuthID(idSession, "netim.at",1); 
      System.out.println(authID); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous