public function get(string $path, array $parameters = [])
    {
        $requestUrl = $this->baseUrl . $path;
        try {
            return $this->executeRequest('GET', $requestUrl, $parameters);
        } catch (ClientException $e) {
            $response = $e->getResponse();
            if (null !== $response && 404 === $response->getStatusCode()) {
                return null;
            }
            throw new RestClientException(
                'Error while getting resource',
                $path,
                [],
                7,
                $e
            );
        } catch (TransferException $e) {
            throw new RestException(
                'Error while getting resource',
                $path,
                [],
                1,
                $e
            );
        }
    }
public function get(string $path, array $parameters = [])
    {
        $requestUrl = $this->baseUrl . $path;
        try {
            return $this->executeRequest('GET', $requestUrl, $parameters);
        } catch (ClientException $e) {
            $response = $e->getResponse();
            if (null !== $response && 404 === $response->getStatusCode()) {
                return null;
            }
            throw new RestClientException(
                'Error while getting resource',
                $path,
                [],
                7,
                $e
            );
        } catch (TransferException $e) {
            throw new RestException(
                'Error while getting resource',
                $path,
                [],
                1,
                $e
            );
        }
    }
public function get ( string $ path , array $ parameters = [ ] ) { $ requestUrl = $ this -> baseUrl . $ path ; try { return $ this -> executeRequest ( 'GET' , $ requestUrl , $ parameters ) ; } catch ( ClientException $ e ) { $ response = $ e -> getResponse ( ) ; if ( null !== $ response && 404 === $ response -> getStatusCode ( ) ) { return null ; } throw new RestClientException ( 'Error while getting resource' , $ path , [ ] , 7 , $ e ) ; } catch ( TransferException $ e ) { throw new RestException ( 'Error while getting resource' , $ path , [ ] , 1 , $ e ) ; } }
get a path

@return array|ResponseInterface|null

@throws RestException
get a path