Advertisement
ch17

amadeuswsdl

Nov 16th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement