alibabacloud / alibabacloud-yjopenapi-php-client
YuanJing OpenAPI SDK for PHP
1.0.20230810
2023-08-10 11:10 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
- ramsey/uuid: ^2.9
- dev-master
- 1.1.20241224.x-dev
- 1.1.20241220.x-dev
- 1.1.20241219.x-dev
- 1.1.20241024.x-dev
- 1.1.20241023.x-dev
- 1.1.20241017.x-dev
- 1.1.20241016.x-dev
- 1.1.20240930.x-dev
- 1.1.20240927.x-dev
- 1.1.20240904.x-dev
- 1.1.20240815.x-dev
- 1.1.20240810.x-dev
- 1.1.20240703.x-dev
- 1.1.20240604.x-dev
- 1.1.20240531.x-dev
- 1.1.20240525.x-dev
- 1.1.20240521.x-dev
- 1.1.20240515.x-dev
- 1.1.20240306.x-dev
- 1.1.20240304.x-dev
- 1.1.20240224.x-dev
- 1.1.20240223.x-dev
- 1.1.20240202.x-dev
- 1.1.20240116.x-dev
- 1.1.20240109.x-dev
- 1.1.20240105.x-dev
- 1.1.20240104.x-dev
- 1.1.20231223.x-dev
- 1.1.20231101.x-dev
- 1.1.20230905.x-dev
- 1.0.20230810
- 1.0.20230809
- 1.0.20230718
- 1.0.20230629
- 1.0.20230619
- 1.0.20230616
- 1.0.20230602
- 1.0.20230410
- 1.0.20230321
- 1.0.20230301
- 1.0.20230216
- 1.0.20230210
- 1.0.20221118
- 1.0.20221118-beta
- 1.0.20221015-beta
- v1.0.x-dev
This package is auto-updated.
Last update: 2024-12-23 17:25:15 UTC
README
YuanJing OpenAPI SDK for PHP
Requirements
PHP 5.5 and later
Installation
Composer
To install the bindings via Composer:
composer require alibabacloud/alibabacloud-yjopenapi-php-client 1.0.20230810
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/vendor/autoload.php');
Usage
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$configuration = \Yjopenapi\Client\Api\Configuration::getDefaultConfiguration();
$configuration
->setHost(host)
->setAccessKey(Your Access Key)
->setSecretKey(Your Secret Key);
// {{Api}},{{Method}},{{Param}} is placeholder, take a look at Explain Of Usage Placeholder
$api = new \Yjopenapi\Client\Api\{{Api}}(new \GuzzleHttp\Client(), $configuration);
try {
// OpenAPI result
$result = $api->{{Method}}(${{Param}})
// OpenAPI result with header
$resultWithHeader = $api->{{Method}}WithHttpInfo(${{Param}})
$result = $resultWithHeader[0]
// OpenAPI TraceId
$traceId = $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Trace_Id][0]
// OpenAPI Status Code
statusCode := $resultWithHeader[2][\Yjopenapi\Client\Model\ModelInterface::Result_Status][0]
} catch (\Yjopenapi\Client\Api\ApiException $e) {
// handle exception
}
Explain Of Usage Placeholder
License
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.