| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function makeRequest($request = "", $type = "GET") |
||
| 12 | { |
||
| 13 | $client = new Client(); |
||
| 14 | $this->request = $client->request($type, $this->CF->Endpoint . $request, [ |
||
| 15 | 'headers' => [ |
||
| 16 | 'X-Auth-Key' => $this->CF->APIKEY, |
||
| 17 | 'X-Auth-Email' => $this->CF->Email |
||
| 18 | ] |
||
| 19 | ]); |
||
| 20 | |||
| 21 | $response = (string) $this->request->getBody(); |
||
| 22 | $this->response = @json_decode($response); |
||
| 23 | |||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 32 |