File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,14 @@ class Client
41
41
*/
42
42
public $ accessSecret ;
43
43
44
+ /**
45
+ * @var string API版本
46
+ */
47
+ public $ version = '2016-11-01 ' ;
48
+
49
+ /**
50
+ * @var string 网关地址
51
+ */
44
52
public $ baseUri = 'http://live.aliyuncs.com/ ' ;
45
53
46
54
/**
@@ -70,6 +78,7 @@ public function getHttpClient()
70
78
$ middleware = new Rpc ([
71
79
'accessKeyId ' => $ this ->accessKeyId ,
72
80
'accessSecret ' => $ this ->accessSecret ,
81
+ 'Version ' => $ this ->version
73
82
]);
74
83
$ stack ->push ($ middleware );
75
84
@@ -92,6 +101,6 @@ public function getHttpClient()
92
101
*/
93
102
public function createRequest (array $ params )
94
103
{
95
- return $ this ->getHttpClient ()->get ('/ ' ,['query ' => $ params ]);
104
+ return $ this ->getHttpClient ()->get ('/ ' , ['query ' => $ params ]);
96
105
}
97
106
}
You can’t perform that action at this time.
0 commit comments