private function get(string $endpoint): array
    {
        return \GuzzleHttp\json_decode(
            $this->client
                ->get(
                    self::API_BASE_URI.$endpoint,
                    [
                        'query' => [
                            'client_id' => $this->apiKey,
                        ],
                    ]
                )
                ->getBody()
                ->getContents(),
            true
        );
    }
private function get(string $endpoint): array
    {
        return \GuzzleHttp\json_decode(
            $this->client
                ->get(
                    self::API_BASE_URI.$endpoint,
                    [
                        'query' => [
                            'client_id' => $this->apiKey,
                        ],
                    ]
                )
                ->getBody()
                ->getContents(),
            true
        );
    }
private function get ( string $ endpoint ) : array { return \ GuzzleHttp \ json_decode ( $ this -> client -> get ( self :: API_BASE_URI . $ endpoint , [ 'query' => [ 'client_id' => $ this -> apiKey , ] , ] ) -> getBody ( ) -> getContents ( ) , true ) ; }
Get the response from the API.

@param string $endpoint
@return mixed
Get the response from the API .