overnic/aliyun-openapi-php-sdk

There is no license information available for the latest version (v1.2.0) of this package.

aliyun api package

v1.2.0 2017-12-04 09:04 UTC

This package is auto-updated.

Last update: 2024-12-18 19:09:32 UTC


README

Requirements

  • PHP 5.4+

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

use Aliyun\Core\Profile\DefaultProfile;
use Aliyun\Core\DefaultAcsClient;
use Aliyun\Ecs\DescribeRegionsRequest; 
 
$iClientProfile = DefaultProfile::getProfile("cn-hangzhou", "<your accessKey>", "<your accessSecret>");
$client = new DefaultAcsClient($iClientProfile);

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