项目作者: aliyunapi

项目描述 :
阿里云的CDN接口
高级语言: PHP
项目地址: git://github.com/aliyunapi/php-aliyun-open-api-cdn.git
创建时间: 2017-03-19T15:10:43Z
项目社区:https://github.com/aliyunapi/php-aliyun-open-api-cdn

开源协议:Apache License 2.0

关键词:
aliyun aliyun-api aliyun-cdn

下载


php-aliyun-open-api-cdn

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json.

使用方式

  1. $client = new \aliyun\cdn\Client([
  2. 'accessKeyId' => '123456',
  3. 'accessSecret' => '123456'
  4. ]);
  5. //@sec https://help.aliyun.com/document_detail/27158.html
  6. $package = [
  7. 'Action' => 'DescribeCdnService',
  8. //etc...
  9. ];
  10. $response = $client->createRequest($package);
  11. print_r($response);
  12. exit;