ventureleap / leap-one-audit-log-sdk
dev-main
2021-11-05 15:28 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
README
没有提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen)
此PHP包是由Swagger Codegen项目自动生成的
- API版本:1.0.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5及以后版本
安装与使用
Composer
要使用Composer安装绑定,请在composer.json
中添加以下内容
{
"repositories": [
{
"type": "git",
"url": "https://github.com/ventureleap/leap-one-audit-log-sdk.git"
}
],
"require": {
"ventureleap/leap-one-audit-log-sdk": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装过程进行,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: apiKey $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new VentureLeap\AuditLogService\Api\AuditLogEntryApi( // 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 ); $entity_uuid = "entity_uuid_example"; // string | $user_uuid = "user_uuid_example"; // string | $entity_type = "entity_type_example"; // string | $order_uuid = "order_uuid_example"; // string | $order_user_uuid = "order_user_uuid_example"; // string | $order_entity_uuid = "order_entity_uuid_example"; // string | $order_entity_type = "order_entity_type_example"; // string | $order_url = "order_url_example"; // string | $order_body = "order_body_example"; // string | $order_entry_type = "order_entry_type_example"; // string | $order_application_id = "order_application_id_example"; // string | $order_created_at = "order_created_at_example"; // string | $order_updated_at = "order_updated_at_example"; // string | $page = 1; // int | The collection page number try { $result = $apiInstance->getAuditLogEntryCollection($entity_uuid, $user_uuid, $entity_type, $order_uuid, $order_user_uuid, $order_entity_uuid, $order_entity_type, $order_url, $order_body, $order_entry_type, $order_application_id, $order_created_at, $order_updated_at, $page); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuditLogEntryApi->getAuditLogEntryCollection: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: apiKey $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new VentureLeap\AuditLogService\Api\AuditLogEntryApi( // 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 | try { $result = $apiInstance->getAuditLogEntryItem($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuditLogEntryApi->getAuditLogEntryItem: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: apiKey $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = VentureLeap\AuditLogService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new VentureLeap\AuditLogService\Api\AuditLogEntryApi( // 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 \VentureLeap\AuditLogService\Model\AuditLogEntryJsonldAuditLogEntryWrite(); // \VentureLeap\AuditLogService\Model\AuditLogEntryJsonldAuditLogEntryWrite | The new AuditLogEntry resource try { $result = $apiInstance->postAuditLogEntryCollection($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuditLogEntryApi->postAuditLogEntryCollection: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI相对于/
模型文档
- AuditLogEntryJsonldAuditLogEntryRead
- AuditLogEntryJsonldAuditLogEntryWrite
- ConfigurationEntryJsonldConfigurationRead
- ConfigurationEntryJsonldConfigurationWrite
- InlineResponse200
- InlineResponse2001
- InlineResponse200Hydrasearch
- InlineResponse200HydrasearchHydramapping
- InlineResponse200Hydraview
授权文档
apiKey
- 类型: API密钥
- API密钥参数名: Authorization
- 位置: HTTP头