public function all($offset = 0, $pageSize = 10, $sort = 'time-descending')
    {
        $this->checkApiMethodIsSupported(__FUNCTION__);
        $pagingOptions = array(
            'offset'   => $offset,
            'pageSize' => $pageSize,
            'sort'     => $sort,
        );

        // Ressource Path with options
        $uri = $this->resourcePath.'?'.http_build_query($pagingOptions);

        $response = $this->request->get(
            $uri
            // No attributes
        );

        return $response->json();
    }
public function all($offset = 0, $pageSize = 10, $sort = 'time-descending')
    {
        $this->checkApiMethodIsSupported(__FUNCTION__);
        $pagingOptions = array(
            'offset'   => $offset,
            'pageSize' => $pageSize,
            'sort'     => $sort,
        );

        // Ressource Path with options
        $uri = $this->resourcePath.'?'.http_build_query($pagingOptions);

        $response = $this->request->get(
            $uri
            // No attributes
        );

        return $response->json();
    }
public function all ( $ offset = 0 , $ pageSize = 10 , $ sort = 'time-descending' ) { $ this -> checkApiMethodIsSupported ( __FUNCTION__ ) ; $ pagingOptions = array ( 'offset' => $ offset , 'pageSize' => $ pageSize , 'sort' => $ sort , ) ; // Ressource Path with options $ uri = $ this -> resourcePath . '?' . http_build_query ( $ pagingOptions ) ; $ response = $ this -> request -> get ( $ uri // No attributes ) ; return $ response -> json ( ) ; }
Retrieve a list of records
@param  int    $offset   The start point in the sorted list of records from which the results set will start
@param  int    $pageSize The number of records to display per page
@param  string $sort     Determines how the list is sorted (time-descending or time-ascending)
@return array API response
Retrieve a list of records