The SLB SDK for Aliyun OpenAPI
Via Composer
$ composer require lokielse/aliyun-open-api-slb
/**
* 访问信息
*/
$config = [
'AccessKeyId'=>'<your access_key_id>',
'AccessKeySecret'=>'<your access_key_secret>',
];
/**
* 配置网关
*/
$endpoint = new Endpoint('cn-hangzhou', EndpointConfig::getRegionIds(), EndpointConfig::getProductDomains());
EndpointProvider::setEndpoints([ $endpoint ]);
/**
* 授权资料
*/
$profile = DefaultProfile::getProfile('cn-hangzhou', $config['AccessKeyId'], $config['AccessKeySecret']);
/**
* 请求对象
*/
$request = new XXXRequest();
$request->setAAA();
$request->setBBB();
$client = new DefaultAcsClient($profile);
$response = $client->getAcsResponse($request);
var_dump($response);
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.