Skip to content

Commit 25b76f1

Browse files
committed
使用说明
1 parent 859e6e4 commit 25b76f1

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
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+
```

0 commit comments

Comments
 (0)