horrentotaal / hamstra-api
6.0.1
2023-06-29 06:53 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.7
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
README
未提供描述(由 Swagger Codegen 生成 https://github.com/swagger-api/swagger-codegen)
此 PHP 包由 Swagger Codegen 项目自动生成
- API 版本:v2
- 包版本:4.2.1
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.5 及以上
安装与使用
Composer
要使用 Composer 安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/horrentotaal/hamstra-api/horrentotaal/hamstra-api.git"
}
],
"require": {
"horrentotaal/hamstra-api/horrentotaal/hamstra-api": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/Horrentotaal/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请遵循 安装过程,然后运行以下命令
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = Horrentotaal\HamstraApi\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Horrentotaal\HamstraApi\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');
$apiInstance = new Horrentotaal\HamstraApi\Api\ConfigurationWizardApi(
// 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
);
$language = "language_example"; // string | ISO 639-1 code for language. Currently supported: nl and fr
try {
$result = $apiInstance->configurationWizardGet($language);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConfigurationWizardApi->configurationWizardGet: ', $e->getMessage(), PHP_EOL;
}
?>
API 端点文档
所有 URI 都相对于 https://staging.api.hamstraonline.vmcluster.nl
模型文档
- HamstraAPIDTOContactFormPostDto
- HamstraAPIDTONCalcValidationDTO
- HamstraAPIDTOValidationMessageDTO
- HamstraAPIModelsAuthenticationGrantModel
- HamstraAPIModelsConfigurationWizardConfigurationWizardEmbedUrl
- HamstraAPIModelsConfigurationWizardConfigurationWizardPdfRequest
- HamstraAPIModelsConfigurationWizardConfigurationWizardState
- HamstraAPIModelsConfigurationWizardConfigurationWizardStepValue
- HamstraAPIModelsGridListHamstraAPIModelsQuotationsViewQuotation
- HamstraAPIModelsOrdersOrder
- HamstraAPIModelsOrdersOrderLine
- HamstraAPIModelsOrdersOrderLineOption
- HamstraAPIModelsOrdersOrderLineOptionRequest
- HamstraAPIModelsOrdersOrderLineRequest
- HamstraAPIModelsOrdersOrderQuotation
- HamstraAPIModelsOrdersOrderRequest
- HamstraAPIModelsPricePriceCalculation
- HamstraAPIModelsProductsOptionConfig
- HamstraAPIModelsProductsProduct
- HamstraAPIModelsProductsProductConfig
- HamstraAPIModelsProductsProductConfigOption
- HamstraAPIModelsProductsProductConfigOptionValue
- HamstraAPIModelsProductsProductConfigRequest
- HamstraAPIModelsProductsProductDetail
- HamstraAPIModelsProductsProductDetailOption
- HamstraAPIModelsProductsProductDetailOptionValue
- HamstraAPIModelsQuotationsViewQuotation
- HamstraAPIModelsQuotationsViewQuotationLine
- HamstraAPIServicesOrderValidationMessage
- MicrosoftWin32SafeHandlesSafeWaitHandle
- SystemCollectionsGenericKeyValuePairSystemObjectSystemCollectionsGenericListHamstraAPIServicesOrderValidationMessage
- SystemThreadingCancellationToken
- SystemThreadingWaitHandle
授权文档
apiKey
- 类型:API 密钥
- API 密钥参数名:apiKey
- 位置:HTTP 头部