dybasedev/aliyun-openapi-sdk

基于阿里云官方 SDK 的完整 composer 打包

dev-master 2018-07-03 07:48 UTC

This package is not auto-updated.

Last update: 2024-10-27 22:40:44 UTC


README

Requirements

  • PHP 5.3+

Build

  • to run unit tests, you will have to configure aliyun-sdk.properties files in your user directory, and make sure your project has corresponding service enabled, eg. openmr.

Example

include_once 'vender/autoload.php';
use Ecs\Request\V20140526 as Ecs;

$iClientProfile = DefaultProfile::getProfile("cn-hangzhou", "<your accessKey>", "<your accessSecret>");
$client = new DefaultAcsClient($iClientProfile);

$request = new Ecs\DescribeRegionsRequest();
$request->setMethod("GET");
$response = $client->getAcsResponse($request);
print_r($response);

Authors && Contributors

License

licensed under the Apache License 2.0