SessionSetPreference

From NETIM
Revision as of 16:48, 2 March 2017 by Netim (Talk | contribs)

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


Release
API >= 2.0


Description

Updates the settings of the ongoing session

void sessionSetPreference(string idSession, string type, string value)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (50) type Setting to be modified lang / sync
string value New value of the Setting lang = EN / FR

sync = 0 (for asynchronous) / 1 (for synchronous)


Return

None


Notes

None


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");
 
      $clientSOAP->sessionSetPreference($idSession, "netim.com", "lang", "FR"); 
      $clientSOAP->sessionSetPreference($idSession, "netim.com", "sync", "0"); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>
Personal tools
Namespaces

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