|
@@ 46-49 (lines=4) @@
|
| 43 |
|
case 'get': |
| 44 |
|
$result = $this->client->get($url, compact('headers')); |
| 45 |
|
break; |
| 46 |
|
case 'post': |
| 47 |
|
$headers += ['Content-Type'=>'application/json']; |
| 48 |
|
$result = $this->client->post($url, compact('headers','body')); |
| 49 |
|
break; |
| 50 |
|
case 'delete': |
| 51 |
|
$headers += ['Content-Type'=>'application/json']; |
| 52 |
|
$result = $this->client->delete($url, compact('headers','body')); |
|
@@ 50-53 (lines=4) @@
|
| 47 |
|
$headers += ['Content-Type'=>'application/json']; |
| 48 |
|
$result = $this->client->post($url, compact('headers','body')); |
| 49 |
|
break; |
| 50 |
|
case 'delete': |
| 51 |
|
$headers += ['Content-Type'=>'application/json']; |
| 52 |
|
$result = $this->client->delete($url, compact('headers','body')); |
| 53 |
|
break; |
| 54 |
|
case 'put': |
| 55 |
|
$headers += ['Content-Type'=>'application/json']; |
| 56 |
|
$result = $this->client->put($url, compact('headers','body')); |
|
@@ 54-57 (lines=4) @@
|
| 51 |
|
$headers += ['Content-Type'=>'application/json']; |
| 52 |
|
$result = $this->client->delete($url, compact('headers','body')); |
| 53 |
|
break; |
| 54 |
|
case 'put': |
| 55 |
|
$headers += ['Content-Type'=>'application/json']; |
| 56 |
|
$result = $this->client->put($url, compact('headers','body')); |
| 57 |
|
break; |
| 58 |
|
default: |
| 59 |
|
$result = null; |
| 60 |
|
break; |