An open API service indexing awesome lists of open source software.

https://github.com/unic/discoverswiss.profile_service


https://github.com/unic/discoverswiss.profile_service

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# SwaggerClient-php
Profile service

This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 1.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

## Requirements

PHP 5.5 and later

## Installation & Usage
### Composer

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
"repositories": [
{
"type": "git",
"url": "https://github.com/unic/discoverswiss.profile_service.git"
}
],
"require": {
"unic/discoverswiss.profile_service": "*@dev"
}
}
```

Then run `composer install`

### Manual Installation

Download the files and include `autoload.php`:

```php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
```

## Tests

To run the unit tests:

```
composer install
./vendor/bin/phpunit
```

## Getting Started

Please follow the [installation procedure](#installation--usage) and then run the following:

```php
setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsAcceptTermVersionRequest(); // \ProfileService\Client\Model\DsAcceptTermVersionRequest | TermVersionCheckRequest.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->acceptATermVersion($body, $ocp_apim_subscription_key, $profile_token, $authorization, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->acceptATermVersion: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsGuestCardRequest(); // \ProfileService\Client\Model\DsGuestCardRequest | Deposite Guest Card request model.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_language = "accept_language_example"; // string | Two-letter language code to get localized properties.

try {
$result = $apiInstance->addGuestCardToUser($body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->addGuestCardToUser: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.

try {
$apiInstance->cancelDeletionProfile($authorization, $ocp_apim_subscription_key);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->cancelDeletionProfile: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$code = "code_example"; // string | The code of the term to test if it has been accepted already.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->checkAcceptedTerm($code, $ocp_apim_subscription_key, $profile_token, $authorization, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->checkAcceptedTerm: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.

try {
$apiInstance->confirmDeletionProfile($authorization, $ocp_apim_subscription_key);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->confirmDeletionProfile: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the stay.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_language = "accept_language_example"; // string | Two-letter language code to get localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->confirmStay($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->confirmStay: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsCardRequest(); // \ProfileService\Client\Model\DsCardRequest | Card request model
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->createCard($body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createCard: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsPartnerDataCreateRequest(); // \ProfileService\Client\Model\DsPartnerDataCreateRequest | PartnerDataRequest.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID to apply its offset to dates and time

try {
$result = $apiInstance->createPartnerdata($body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createPartnerdata: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsPartyRequest(); // \ProfileService\Client\Model\DsPartyRequest | PartyRequest - group of travelers.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->createParty($body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createParty: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the party.
$body = "\"string\""; // string |
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->createPartyInvitation($id, $body, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->createPartyInvitation: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the card.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->deleteCard($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteCard: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$identifier = "identifier_example"; // string | Identifier of the media.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$apiInstance->deleteMedia($identifier, $ocp_apim_subscription_key, $authorization, $profile_token);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteMedia: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$apiInstance->deleteMyProfile($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteMyProfile: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$name = "name_example"; // string | Name of the partnerdata.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->deletePartnerdata($name, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deletePartnerdata: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$name = "name_example"; // string | Name of the partnerdata.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$apiInstance->deletePartnerdataSharePermission($name, $ocp_apim_subscription_key, $authorization, $profile_token);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deletePartnerdataSharePermission: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the party.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->deleteParty($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteParty: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the party.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->deletePartyInvitation($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deletePartyInvitation: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$apiInstance->deleteProfilePicture($ocp_apim_subscription_key, $authorization, $profile_token);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteProfilePicture: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the stay.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->deleteStay($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteStay: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$identifier = "identifier_example"; // string | Identifier of the media.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->downloadMedia($identifier, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadMedia: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$order_token = "order_token_example"; // string | the token of the order.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->downloadOrderinfo($order_token, $ocp_apim_subscription_key, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadOrderinfo: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the ticket.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->downloadTicket($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->downloadTicket: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the address.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getAddressById($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getAddressById: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsBusinessTrailRequest(); // \ProfileService\Client\Model\DsBusinessTrailRequest | BusinessTrailRequest.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getBusinessTrailEntries($body, $ocp_apim_subscription_key, $profile_token, $authorization, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getBusinessTrailEntries: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the card.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getCard($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getCard: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$identifier = "identifier_example"; // string | Identifier of the media.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getMedia($identifier, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMedia: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$identifier = "identifier_example"; // string | Identifier of the media.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getMediaBinary($identifier, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMediaBinary: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$identifier = "identifier_example"; // string | Identifier of the media.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getMediaThumbnailBinary($identifier, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMediaThumbnailBinary: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyCards($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyCards: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getMyMedia($ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyMedia: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyOrders($continuation_token, $top, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyOrders: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyParties($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyParties: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID to apply its offset to dates and time

try {
$result = $apiInstance->getMyPartnerData($continuation_token, $top, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyPartnerData: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyProfile($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyProfile: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyStays($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyStays: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$scope = "scope_example"; // string | Scope of the tickets (Default: currentAndFuture). Valid values: currentAndFuture, current, past, all
$order_number = "order_number_example"; // string | To get only ticket related to order
$additional_type = 56; // int | Format - int32. Filter by the additional type property
$continuation_token = "continuation_token_example"; // string | Use it for get next set of data.
$top = 56; // int | Format - int32. Number of next set of entities.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getMyTickets($scope, $order_number, $additional_type, $continuation_token, $top, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getMyTickets: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the order.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getOrder($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getOrder: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$name = "name_example"; // string | Name of the partnerdata.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID to apply its offset to dates and time

try {
$result = $apiInstance->getPartnerdata($name, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getPartnerdata: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the party.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getParty($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getParty: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getProfilePictureThumbnail($ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getProfilePictureThumbnail: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.

try {
$apiInstance->getStatus($ocp_apim_subscription_key);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getStatus: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.

try {
$result = $apiInstance->getStatusAbout($ocp_apim_subscription_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getStatusAbout: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the stay.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getStay($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getStay: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the ticket.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getTicket($id, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTicket: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = "id_example"; // string | Id of the ticket.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->getTicketBinary($id, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getTicketBinary: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$grant_type = "grant_type_example"; // string | the type of the token request: guest, authorization_header or refresh_token
$refresh_token = "refresh_token_example"; // string | The refresh token case of grant_type=refresh_token
$max_refresh_lifetime = "max_refresh_lifetime_example"; // string | maximal refresh token lifetime requested by the client in days
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->getToken($grant_type, $refresh_token, $max_refresh_lifetime, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getToken: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$sharing_identifier = "sharing_identifier_example"; // string | Profile Data share ID
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->importSharedProfileData($sharing_identifier, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->importSharedProfileData: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsStayRequest(); // \ProfileService\Client\Model\DsStayRequest | StayRequest containing the parameters to initialize the stay.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_language = "accept_language_example"; // string | Two-letter language code to get localized properties.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->initializeStay($body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_language, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->initializeStay: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsJoinPartyRequest(); // \ProfileService\Client\Model\DsJoinPartyRequest | Join party request
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.

try {
$result = $apiInstance->joinParty($body, $ocp_apim_subscription_key, $authorization, $profile_token);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->joinParty: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->listAddresses($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listAddresses: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times

try {
$result = $apiInstance->listTravelers($ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->listTravelers: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$name = "name_example"; // string | Name of the partnerdata object
$body = new \ProfileService\Client\Model\DsPartnerDataUpdateRequest(); // \ProfileService\Client\Model\DsPartnerDataUpdateRequest | PartnerDataRequest to update.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$profile_token = "profile_token_example"; // string | Profile token to identify the guest user profile.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID to apply its offset to dates and time

try {
$result = $apiInstance->pATCHPartnerdataObject($name, $body, $ocp_apim_subscription_key, $authorization, $profile_token, $accept_timezone);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->pATCHPartnerdataObject: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$authorization = "authorization_example"; // string | Authorization header to identify the B2C user profile.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.

try {
$apiInstance->resendAccountVerificationEmail($authorization, $ocp_apim_subscription_key);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->resendAccountVerificationEmail: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsAcceptTermVersionRequest(); // \ProfileService\Client\Model\DsAcceptTermVersionRequest | AcceptTermVersionRequest.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$accept_timezone = "accept_timezone_example"; // string | Time zone ID for response dates & times
$max_refresh_lifetime = "max_refresh_lifetime_example"; // string | maximal refresh token lifetime requested by the client in days

try {
$result = $apiInstance->saveConsentDissent($body, $ocp_apim_subscription_key, $accept_timezone, $max_refresh_lifetime);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->saveConsentDissent: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$body = new \ProfileService\Client\Model\DsSendOtpRequest(); // \ProfileService\Client\Model\DsSendOtpRequest |
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$accept_language = "accept_language_example"; // string | Two-letter language code to get localized properties.

try {
$result = $apiInstance->sendOtp($body, $ocp_apim_subscription_key, $accept_language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->sendOtp: ', $e->getMessage(), PHP_EOL;
}

// Configure API key authorization: apiKeyHeader
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');
// Configure API key authorization: apiKeyQuery
$config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKey('subscription-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ProfileService\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('subscription-key', 'Bearer');

$apiInstance = new ProfileService\Client\Api\DefaultApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$name = "name_example"; // string | Name of the partnerdata.
$ocp_apim_subscription_key = "ocp_apim_subscription_key_example"; // string | Subscription key to access the api. Get it on developer.discover.swiss.
$authorization = "authorization_example"; // s