Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'vendor/autoload.php';
- use Amadeus\Client;
- use Amadeus\Client\Params;
- use Amadeus\Client\Result;
- use Amadeus\Client\RequestOptions\PnrRetrieveOptions;
- $params = new Params([
- 'authParams' => [
- 'officeId' => 'MY_OFFICE_ID',
- 'userId' => 'MY_USER_ID',
- 'passwordData' => 'MY_PASSWORD',
- 'passwordLength' => 12,
- 'dutyCode' => 'SU',
- 'organizationId' => 'MY_ORGANIZATION_ID'
- ],
- 'sessionHandlerParams' => [
- 'soapHeaderVersion' => Client::HEADER_V4,
- 'wsdl' => '/var/www/html/xtra/amadeus-wsdl/data/amadeuswsdl/1ASIWHALIHDU_UAT_20181116_080610.wsdl',
- 'stateful' => false,
- 'logger' => new Psr\Log\NullLogger()
- ],
- 'requestCreatorParams' => [
- 'receivedFrom' => 'Project HT'
- ]
- ]);
- $client = new Client($params);
- $authResult = $client->securityAuthenticate();
- var_dump($authResult);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement