Completed
Pull Request — master (#267)
by
unknown
12:55
created
src/Qiniu/Rtc/AppClient.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@  discard block
 block discarded – undo
166 166
         return $this->auth->signWithData($appAccessString);
167 167
     }
168 168
 
169
+    /**
170
+     * @param string $url
171
+     */
169 172
     private function get($url, $cType = null)
170 173
     {
171 174
         $rtcToken = $this->auth->authorizationV2($url, "GET", $body, $cType);
@@ -177,6 +180,9 @@  discard block
 block discarded – undo
177 180
         return array($ret->json(), null);
178 181
     }
179 182
 
183
+    /**
184
+     * @param string $url
185
+     */
180 186
     private function delete($url, $cType = 'application/json')
181 187
     {
182 188
         $rtcToken = $this->auth->authorizationV2($url, "DELETE", $body, $cType);
@@ -188,6 +194,10 @@  discard block
 block discarded – undo
188 194
         return array($ret->json(), null);
189 195
     }
190 196
 
197
+    /**
198
+     * @param string $url
199
+     * @param string $body
200
+     */
191 201
     private function post($url, $body, $cType = 'application/json')
192 202
     {
193 203
         $rtcToken = $this->auth->authorizationV2($url, "POST", $body, $cType);
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Qiniu\Rtc;
3 3
 
4
+use Qiniu\Auth;
5
+use Qiniu\Config;
4 6
 use Qiniu\Http\Client;
5 7
 use Qiniu\Http\Error;
6
-use Qiniu\Config;
7
-use Qiniu\Auth;
8 8
 
9 9
 class AppClient
10 10
 {
Please login to merge, or discard this patch.