httpClient = new Client([ 'headers' => [ 'Authorization' => $this->argument('apikey'), ] ]); $result = $this->httpClient->get($this->argument('url')); print_r(\GuzzleHttp\json_decode($result->getBody())); } }