File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed
Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 1- # php-aliyun-open-api-live
1+ # php-aliyun-open-api-live
2+
3+ Installation
4+ ------------
5+
6+ The preferred way to install this extension is through [ composer] ( http://getcomposer.org/download/ ) .
7+
8+ Either run
9+
10+ ```
11+ php composer.phar require --prefer-dist aliyunapi/php-aliyun-open-api-live
12+ ```
13+
14+ or add
15+
16+ ```
17+ "aliyunapi/php-aliyun-open-api-live": "~1.0"
18+ ```
19+
20+ to the require section of your composer.json.
21+
22+ 使用方式
23+ ------------
24+ ```
25+ $client = new \aliyun\live\Client('123456', '123456');
26+ $package = [
27+ 'Action' => 'DescribeLiveStreamsPublishList',
28+ 'DomainName' => 'live.opencoding.tv',
29+ 'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
30+ 'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
31+ ];
32+ $response = $client->createRequest($package);
33+ print_r($response);
34+ exit;
35+ ```
You can’t perform that action at this time.
0 commit comments