lib/DataSift/Push/Subscription.php
public function pull($size = 20971520, $cursor = false)
    {
        //Check that the output type of this subscription is a pull
        if (strtolower($this->_output_type) != 'pull') {
            throw new DataSift_Exception_InvalidData("Output type is not pull");
        }

        $params = array('id' => $this->getId(), 'size' => $size);

        if ($cursor !== false) {
            $params['cursor'] = $cursor;
        }

        return $this->_user->get('pull', $params);
    }
public function pull($size = 20971520, $cursor = false)
    {
        //Check that the output type of this subscription is a pull
        if (strtolower($this->_output_type) != 'pull') {
            throw new DataSift_Exception_InvalidData("Output type is not pull");
        }

        $params = array('id' => $this->getId(), 'size' => $size);

        if ($cursor !== false) {
            $params['cursor'] = $cursor;
        }

        return $this->_user->get('pull', $params);
    }
public function pull ( $ size = 20971520 , $ cursor = false ) { //Check that the output type of this subscription is a pull if ( strtolower ( $ this -> _output_type ) != 'pull' ) { throw new DataSift_Exception_InvalidData ( "Output type is not pull" ) ; } $ params = array ( 'id' => $ this -> getId ( ) , 'size' => $ size ) ; if ( $ cursor !== false ) { $ params [ 'cursor' ] = $ cursor ; } return $ this -> _user -> get ( 'pull' , $ params ) ; }
Pull data from this subscription.

@param int $size The maximum amount of data that DataSift will send in a single batch.
Can be any value from 1 byte through 20971520 bytes.
@param string $cursor A pointer into the Push queue associated with the current Push subscription.

@return array
@throws DataSift_Exception_InvalidData
@throws DataSift_Exception_APIError
@throws DataSift_Exception_AccessDenied
Pull data from this subscription .