File tree Expand file tree Collapse file tree 2 files changed +38
-13
lines changed Expand file tree Collapse file tree 2 files changed +38
-13
lines changed Original file line number Diff line number Diff line change 1
1
# php-aliyun-open-api-dm
2
- 阿里云DM接口
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-dm
12
+ ```
13
+
14
+ or add
15
+
16
+ ```
17
+ "aliyunapi/php-aliyun-open-api-dm": "~1.0"
18
+ ```
19
+
20
+ to the require section of your composer.json.
21
+
22
+ 使用方式
23
+ ------------
24
+ ```
25
+ $client = new \aliyun\dm\Client([
26
+ 'accessKeyId' => '123456',
27
+ 'accessSecret' => '123456'
28
+ ]);
29
+ $package = [
30
+ 'Action' => 'DescribeLiveStreamsPublishList',
31
+ 'DomainName' => 'live.cctv.com',
32
+ 'StartTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-03-15')),
33
+ 'EndTime' => gmdate('Y-m-d\TH:i:s\Z', strtotime('2017-04-01')),
34
+ ];
35
+ $response = $client->createRequest($package);
36
+ print_r($response);
37
+ exit;
38
+ ```
Original file line number Diff line number Diff line change 20
20
],
21
21
"require" : {
22
22
"php" : " >=5.5.0" ,
23
- "guzzlehttp/guzzle" : " ~6.0"
24
- },
25
- "require-dev" : {
26
- "phpunit/phpunit" : " 4.*"
23
+ "aliyunapi/guzzle-subscriber" : " ~1.0"
27
24
},
28
25
"autoload" : {
29
26
"psr-4" : {
30
27
"aliyun\\ dm\\ " : " src"
31
28
}
32
- },
33
- "autoload-dev" : {
34
- "psr-4" : {
35
- "aliyun\\ test\\ dm\\ " : " tests"
36
- }
37
- },
38
- "scripts" : {
39
- "test" : " phpunit"
40
29
}
41
30
}
You can’t perform that action at this time.
0 commit comments