src/MediaServices/MediaServicesRestProxy.php
private function _getEntityList($path, array $queryParams = [])
    {
        $method = Resources::HTTP_GET;
        $headers = [];
        $postParams = [];
        $statusCode = Resources::STATUS_OK;

        $response = $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );

        return $this->getEntryList($response->getBody());
    }
private function _getEntityList($path, array $queryParams = [])
    {
        $method = Resources::HTTP_GET;
        $headers = [];
        $postParams = [];
        $statusCode = Resources::STATUS_OK;

        $response = $this->sendHttp(
            $method,
            $headers,
            $queryParams,
            $postParams,
            $path,
            $statusCode
        );

        return $this->getEntryList($response->getBody());
    }
private function _getEntityList ( $ path , array $ queryParams = [ ] ) { $ method = Resources :: HTTP_GET ; $ headers = [ ] ; $ postParams = [ ] ; $ statusCode = Resources :: STATUS_OK ; $ response = $ this -> sendHttp ( $ method , $ headers , $ queryParams , $ postParams , $ path , $ statusCode ) ; return $ this -> getEntryList ( $ response -> getBody ( ) ) ; }
Get entity list.

@param string $path        REST path
@param array  $queryParams URL query parameters. An example is $queryParams = ['$top' => 20, '$skip' => 40] to
support paging

@return Entity[]
Get entity list .