aliyunapi / php-aliyun-open-api-dm
aliyunsdk
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aliyunapi/php-aliyun-open-api-dm
Requires
- php: >=5.5.0
- aliyunapi/guzzle-subscriber: ~1.0
This package is auto-updated.
Last update: 2025-09-11 05:08:16 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist aliyunapi/php-aliyun-open-api-dm
or add
"aliyunapi/php-aliyun-open-api-dm": "~1.0"
to the require section of your composer.json.
使用方式
$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;