daily pastebin goal
14%
SHARE
TWEET

amadeuswsdl

ch17 Nov 16th, 2018 89 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. <?php
  2. require 'vendor/autoload.php';
  3.  
  4. use Amadeus\Client;
  5. use Amadeus\Client\Params;
  6. use Amadeus\Client\Result;
  7. use Amadeus\Client\RequestOptions\PnrRetrieveOptions;
  8.  
  9. $params = new Params([
  10.     'authParams' => [
  11.         'officeId' => 'MY_OFFICE_ID',
  12.         'userId' => 'MY_USER_ID',
  13.         'passwordData' => 'MY_PASSWORD',
  14.         'passwordLength' => 12,
  15.         'dutyCode' => 'SU',
  16.         'organizationId' => 'MY_ORGANIZATION_ID'
  17.     ],
  18.     'sessionHandlerParams' => [
  19.         'soapHeaderVersion' => Client::HEADER_V4,
  20.         'wsdl' => '/var/www/html/xtra/amadeus-wsdl/data/amadeuswsdl/1ASIWHALIHDU_UAT_20181116_080610.wsdl',
  21.         'stateful' => false,
  22.         'logger' => new Psr\Log\NullLogger()
  23.     ],
  24.     'requestCreatorParams' => [
  25.         'receivedFrom' => 'Project HT'
  26.     ]
  27. ]);
  28.  
  29. $client = new Client($params);
  30.  
  31. $authResult = $client->securityAuthenticate();
  32. var_dump($authResult);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top