aliyunapi / php-aliyun-open-api-cdn

1.0.0 2017-03-29 01:36 UTC

This package is auto-updated.

Last update: 2024-09-11 03:33:03 UTC


README

安装

安装此扩展的首选方式是通过 composer

运行

php composer.phar require --prefer-dist aliyunapi/php-aliyun-open-api-cdn

或添加

"aliyunapi/php-aliyun-open-api-cdn": "~1.0"

到您的 composer.json 的 require 部分。

使用方式

$client = new \aliyun\cdn\Client([
    'accessKeyId' => '123456',
    'accessSecret' => '123456'
]);

//@sec https://help.aliyun.com/document_detail/27158.html
$package = [
    'Action' => 'DescribeCdnService',
    //etc...
];
$response = $client->createRequest($package);
print_r($response);
exit;