request('GET', $url); $this->json = json_decode($response->getBody(), true); return $this; } catch (\Exception $e) { echo 'Catch in : ', $e->getMessage(), "\n"; } } }