php-aliyun-open-api-dm
Installation
The preferred way to install this extension is through composer., (*1)
Either run, (*2)
php composer.phar require --prefer-dist aliyunapi/php-aliyun-open-api-dm
or add, (*3)
"aliyunapi/php-aliyun-open-api-dm": "~1.0"
to the require section of your composer.json., (*4)
使用方式
$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;