@@ -168,6 +168,9 @@ discard block |
||
168 | 168 | return $this->auth->signWithData($appAccessString); |
169 | 169 | } |
170 | 170 | |
171 | + /** |
|
172 | + * @param string $url |
|
173 | + */ |
|
171 | 174 | private function get($url, $cType = null) |
172 | 175 | { |
173 | 176 | $rtcToken = $this->auth->authorizationV2($url, "GET", null, $cType); |
@@ -179,6 +182,9 @@ discard block |
||
179 | 182 | return array($ret->json(), null); |
180 | 183 | } |
181 | 184 | |
185 | + /** |
|
186 | + * @param string $url |
|
187 | + */ |
|
182 | 188 | private function delete($url, $contentType = 'application/json') |
183 | 189 | { |
184 | 190 | $rtcToken = $this->auth->authorizationV2($url, "DELETE", null, $contentType); |
@@ -190,6 +196,10 @@ discard block |
||
190 | 196 | return array($ret->json(), null); |
191 | 197 | } |
192 | 198 | |
199 | + /** |
|
200 | + * @param string $url |
|
201 | + * @param string $body |
|
202 | + */ |
|
193 | 203 | private function post($url, $body, $contentType = 'application/json') |
194 | 204 | { |
195 | 205 | $rtcToken = $this->auth->authorizationV2($url, "POST", $body, $contentType); |