aliyunapi/php-aliyun-open-api-dm

1.0.0 2017-03-29 01:30 UTC

This package is auto-updated.

Last update: 2024-09-11 03:08:00 UTC


README

安装方法

安装此扩展的首选方法是通过 Composer

运行以下命令之一

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

或者在您的 composer.json 文件的 require 部分添加

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

使用方法

$client = new \aliyun\dm\Client([
    'accessKeyId' => '123456',
    'accessSecret' => '123456'
]);
$package = [
    'Action' => 'DescribeLiveStreamsPublishList',
    'DomainName' => 'live.cctv.com',
    'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
    'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
];
$response = $client->createRequest($package);
print_r($response);
exit;