All URIs are relative to https://virtserver.swaggerhub.com/mezmer/kinoheld/1.0.0
Method | HTTP request | Description |
---|---|---|
discountGet | GET /discount | get the discount |
\kinoheld\GenericProviderClient\Model\Discount discountGet($chainId, $cinemaId, $code)
get the discount
Get the discount
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = kinoheld\GenericProviderClient\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kinoheld\GenericProviderClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new kinoheld\GenericProviderClient\Api\DiscountApi(
// 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
);
$chainId = 56; // int | The chain ID the cinema belongs to.
$cinemaId = 56; // int | The cinema ID the show/event belongs to.
$code = "code_example"; // string | discount code
try {
$result = $apiInstance->discountGet($chainId, $cinemaId, $code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DiscountApi->discountGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
chainId | int | The chain ID the cinema belongs to. | |
cinemaId | int | The cinema ID the show/event belongs to. | |
code | string | discount code |
\kinoheld\GenericProviderClient\Model\Discount
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]