|
@@ 169-173 (lines=5) @@
|
| 166 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); break; |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
if (is_numeric(array_search($method, array('DELETE', 'PUT')))) { |
| 170 |
|
if (isset($body)) { |
| 171 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 172 |
|
} |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
$result = curl_exec($ch); |
| 176 |
|
|
|
@@ 255-259 (lines=5) @@
|
| 252 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); break; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
if (is_numeric(array_search($method, array('DELETE', 'PUT', 'POST')))) { |
| 256 |
|
if (isset($body)) { |
| 257 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 258 |
|
} |
| 259 |
|
} |
| 260 |
|
|
| 261 |
|
$result = curl_exec($ch); |
| 262 |
|
|