private function getResultsInRange(PagerInterface $pager, array $query_params): array
    {
        $query_params['startKey'] = $pager->getStartKey();
        // Do not add 0 unnecessarily to the query parameters.
        if ($pager->getLimit() > 0) {
            $query_params['count'] = $pager->getLimit();
        }
        $uri = $this->getBaseEndpointUri()->withQuery(http_build_query($query_params));
        $response = $this->getClient()->get($uri);

        return $this->responseToArray($response);
    }
private function getResultsInRange(PagerInterface $pager, array $query_params): array
    {
        $query_params['startKey'] = $pager->getStartKey();
        // Do not add 0 unnecessarily to the query parameters.
        if ($pager->getLimit() > 0) {
            $query_params['count'] = $pager->getLimit();
        }
        $uri = $this->getBaseEndpointUri()->withQuery(http_build_query($query_params));
        $response = $this->getClient()->get($uri);

        return $this->responseToArray($response);
    }
private function getResultsInRange ( PagerInterface $ pager , array $ query_params ) : array { $ query_params [ 'startKey' ] = $ pager -> getStartKey ( ) ; // Do not add 0 unnecessarily to the query parameters. if ( $ pager -> getLimit ( ) > 0 ) { $ query_params [ 'count' ] = $ pager -> getLimit ( ) ; } $ uri = $ this -> getBaseEndpointUri ( ) -> withQuery ( http_build_query ( $ query_params ) ) ; $ response = $ this -> getClient ( ) -> get ( $ uri ) ; return $ this -> responseToArray ( $ response ) ; }
Gets entities and entity ids in a provided range from Apigee Edge.

This method for organizations with CPS enabled.

@param \Apigee\Edge\Structure\PagerInterface $pager
CPS limit object with configured startKey and limit.
@param array $query_params
Query parameters for the API call.

@return array
API response parsed as an array.
Gets entities and entity ids in a provided range from Apigee Edge .