protected function getRawList(UriInterface $uri): array
    {
        $response = $this->getClient()->get($uri);
        $responseArray = $this->responseToArray($response);

        // Ignore entity type key from response, ex.: product.
        return reset($responseArray);
    }
protected function getRawList(UriInterface $uri): array
    {
        $response = $this->getClient()->get($uri);
        $responseArray = $this->responseToArray($response);

        // Ignore entity type key from response, ex.: product.
        return reset($responseArray);
    }
protected function getRawList ( UriInterface $ uri ) : array { $ response = $ this -> getClient ( ) -> get ( $ uri ) ; $ responseArray = $ this -> responseToArray ( $ response ) ; // Ignore entity type key from response, ex.: product. return reset ( $ responseArray ) ; }
Returns a raw API response as an array of a listing API endpoint.

@param \Psr\Http\Message\UriInterface $uri
URI of the endpoint where the request should be sent.

@return array
API response as an array.
Returns a raw API response as an array of a listing API endpoint .