1 | <?php |
||
13 | class ApiCallService |
||
14 | { |
||
15 | |||
16 | private $url = 'https://api.onpage.org/zoom/json'; |
||
17 | |||
18 | /** |
||
19 | * Start the api call |
||
20 | * |
||
21 | * @param string $json |
||
22 | * @return string |
||
23 | */ |
||
24 | public function makeCall($json) |
||
30 | |||
31 | /** |
||
32 | * Check if curl is loaded |
||
33 | * |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | protected function checkForCurl() |
||
42 | |||
43 | /** |
||
44 | * Send the api request |
||
45 | * |
||
46 | * @param string $data |
||
47 | * @return string |
||
48 | * @throws UnavailableException |
||
49 | */ |
||
50 | protected function send($data) |
||
80 | } |
||
81 |