Login

From NETIM
Revision as of 15:55, 2 August 2017 by Netim (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Release
API >= 2.0

It is recommanded to use the function sessionOpen instead.

Description

Opens a session for the reseller

string login(string idReseller, string password, string language)


Parameters

Format Variable Description Notes
string (8) IdReseller Reseller account
string password Password
string (2) language Language for messages FR / EN


Return

A session ID - string(32)


Notes

The session number must be kept for next function calls.


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");       
      echo "OK\n"; 
} 
catch(SoapFault $fault) 
{ 
      echo "KO\n"; 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      System.out.println("Login OK"); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous