public function get($pages = 0)
    {
        $endpoint = $this->getEndpoint();
        $params = $this->getParams();
        $list = $this->getClient()->request($endpoint, 'GET', $params);

        $i = 1;
        while ($list['metadata']['continue']) {
            if ($pages > 0 && $pages >= $i) {
                return $list;
            }
            $params['continue'] = $list['metadata']['continue'];
            $i_list = $this->getClient()->request($endpoint, 'GET', $params);
            $i_list['items'] = array_merge($list['items'], $i_list['items']);
            $list = $i_list;
            unset($i_list);
            $i++;
        }

        return $list;
    }
public function get($pages = 0)
    {
        $endpoint = $this->getEndpoint();
        $params = $this->getParams();
        $list = $this->getClient()->request($endpoint, 'GET', $params);

        $i = 1;
        while ($list['metadata']['continue']) {
            if ($pages > 0 && $pages >= $i) {
                return $list;
            }
            $params['continue'] = $list['metadata']['continue'];
            $i_list = $this->getClient()->request($endpoint, 'GET', $params);
            $i_list['items'] = array_merge($list['items'], $i_list['items']);
            $list = $i_list;
            unset($i_list);
            $i++;
        }

        return $list;
    }
public function get ( $ pages = 0 ) { $ endpoint = $ this -> getEndpoint ( ) ; $ params = $ this -> getParams ( ) ; $ list = $ this -> getClient ( ) -> request ( $ endpoint , 'GET' , $ params ) ; $ i = 1 ; while ( $ list [ 'metadata' ] [ 'continue' ] ) { if ( $ pages > 0 && $ pages >= $ i ) { return $ list ; } $ params [ 'continue' ] = $ list [ 'metadata' ] [ 'continue' ] ; $ i_list = $ this -> getClient ( ) -> request ( $ endpoint , 'GET' , $ params ) ; $ i_list [ 'items' ] = array_merge ( $ list [ 'items' ] , $ i_list [ 'items' ] ) ; $ list = $ i_list ; unset ( $ i_list ) ; $ i ++ ; } return $ list ; }
Get all values from a list endpoint.  Full list is returned as if made in a single call.

@param int $pages
@return bool|mixed|string
@throws \Exception
Get all values from a list endpoint . Full list is returned as if made in a single call .