Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 2.24 KB

DiscountApi.md

File metadata and controls

66 lines (48 loc) · 2.24 KB

kinoheld\GenericProviderClient\DiscountApi

All URIs are relative to https://virtserver.swaggerhub.com/mezmer/kinoheld/1.0.0

Method HTTP request Description
discountGet GET /discount get the discount

discountGet

\kinoheld\GenericProviderClient\Model\Discount discountGet($chainId, $cinemaId, $code)

get the discount

Get the discount

Example

<?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;
}
?>

Parameters

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

Return type

\kinoheld\GenericProviderClient\Model\Discount

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]