|
@@ 138-145 (lines=8) @@
|
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
switch($method) { |
| 138 |
|
case 'DELETE': |
| 139 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 140 |
|
|
| 141 |
|
if (isset($body)) { |
| 142 |
|
|
| 143 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 144 |
|
} |
| 145 |
|
break; |
| 146 |
|
case 'DELETEARRAY': |
| 147 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 148 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); |
|
@@ 146-149 (lines=4) @@
|
| 143 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 144 |
|
} |
| 145 |
|
break; |
| 146 |
|
case 'DELETEARRAY': |
| 147 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 148 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); |
| 149 |
|
break; |
| 150 |
|
case 'PUT': |
| 151 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); |
| 152 |
|
|
|
@@ 150-156 (lines=7) @@
|
| 147 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 148 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); |
| 149 |
|
break; |
| 150 |
|
case 'PUT': |
| 151 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); |
| 152 |
|
|
| 153 |
|
if (isset($body)) { |
| 154 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 155 |
|
} |
| 156 |
|
break; |
| 157 |
|
case 'POST': |
| 158 |
|
if (isset($body)) { |
| 159 |
|
$bodyData = json_encode($body); |
|
@@ 230-236 (lines=7) @@
|
| 227 |
|
curl_setopt_array($ch, $curlOpts); |
| 228 |
|
|
| 229 |
|
switch($method) { |
| 230 |
|
case 'DELETE': |
| 231 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 232 |
|
|
| 233 |
|
if (isset($body)) { |
| 234 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 235 |
|
} |
| 236 |
|
break; |
| 237 |
|
case 'DELETEARRAY': |
| 238 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 239 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); |
|
@@ 237-240 (lines=4) @@
|
| 234 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); |
| 235 |
|
} |
| 236 |
|
break; |
| 237 |
|
case 'DELETEARRAY': |
| 238 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 239 |
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); |
| 240 |
|
break; |
| 241 |
|
case 'PUT': |
| 242 |
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); |
| 243 |
|
if (isset($query)) { |