src/V2/Pagination/PaginatedEndpoint.php
public function page( $page, $size = null ) {
        if( is_null( $size )) {
            $size = $this->maxPageSize();
        }

        if( $size > $this->maxPageSize() || $size <= 0 ) {
            throw new OutOfRangeException('$size has to be between 0 and ' . $this->maxPageSize() . ', was ' . $size );
        }

        if( $page < 0 ) {
            throw new OutOfRangeException('$page has to be 0 or greater');
        }

        return $this->request( $this->createPaginatedRequestQuery( $page, $size ) )->json();
    }
public function page( $page, $size = null ) {
        if( is_null( $size )) {
            $size = $this->maxPageSize();
        }

        if( $size > $this->maxPageSize() || $size <= 0 ) {
            throw new OutOfRangeException('$size has to be between 0 and ' . $this->maxPageSize() . ', was ' . $size );
        }

        if( $page < 0 ) {
            throw new OutOfRangeException('$page has to be 0 or greater');
        }

        return $this->request( $this->createPaginatedRequestQuery( $page, $size ) )->json();
    }
public function page ( $ page , $ size = null ) { if ( is_null ( $ size ) ) { $ size = $ this -> maxPageSize ( ) ; } if ( $ size > $ this -> maxPageSize ( ) || $ size <= 0 ) { throw new OutOfRangeException ( '$size has to be between 0 and ' . $ this -> maxPageSize ( ) . ', was ' . $ size ) ; } if ( $ page < 0 ) { throw new OutOfRangeException ( '$page has to be 0 or greater' ) ; } return $ this -> request ( $ this -> createPaginatedRequestQuery ( $ page , $ size ) ) -> json ( ) ; }
Get a single page.

@param int $page
@param int $size
@return mixed
Get a single page .