Set session preferences

				
					void sessionSetPreference(string idSession, array preferences)
			

Sets API session preferences.

REQUIRED

  • idSession string (32)
    Session ID

 

OPTIONAL

  • preferences array
    Session preferences
  • preferences.lang string (2)
    Language in which the API will respond (EN, FR)
  • preferences.sync integer (1)
    Asynchronous or synchronous processing of operations (0, 1)
  • preferences.syncDelay integer
    Maximum waiting time for return of synchronous operations (-1 – 127)
  • preferences.notif integer (1)
    Disable or enable operation notifications (0, 1)
$clientSOAP = new SoapClient('https://URL.wsdl');

$preferences = array(
    'lang' => 'EN',
    'sync' => 1,
    'notif' => 0,
);

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $clientSOAP->sessionSetPreference($idReseller, $preferences);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}