lib/DataSift/Definition.php
public function getBuffered($count = false, $from_id = false)
    {
        $retval = false;

        if (strlen(trim($this->_csdl)) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot get buffered interactions for an empty definition.');
        }

        $params = array('hash' => $this->getHash());
        if ($count !== false) {
            $params['count'] = $count;
        }
        if ($from_id !== false) {
            $params['interaction_id'] = $from_id;
        }

        $retval = $this->_user->post('stream', $params);

        if (isset($retval['stream'])) {
            $retval = $retval['stream'];
        } else {
            throw new DataSift_Exception_APIError('No data in the response');
        }

        return $retval;
    }
public function getBuffered($count = false, $from_id = false)
    {
        $retval = false;

        if (strlen(trim($this->_csdl)) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot get buffered interactions for an empty definition.');
        }

        $params = array('hash' => $this->getHash());
        if ($count !== false) {
            $params['count'] = $count;
        }
        if ($from_id !== false) {
            $params['interaction_id'] = $from_id;
        }

        $retval = $this->_user->post('stream', $params);

        if (isset($retval['stream'])) {
            $retval = $retval['stream'];
        } else {
            throw new DataSift_Exception_APIError('No data in the response');
        }

        return $retval;
    }
public function getBuffered ( $ count = false , $ from_id = false ) { $ retval = false ; if ( strlen ( trim ( $ this -> _csdl ) ) == 0 ) { throw new DataSift_Exception_InvalidData ( 'Cannot get buffered interactions for an empty definition.' ) ; } $ params = array ( 'hash' => $ this -> getHash ( ) ) ; if ( $ count !== false ) { $ params [ 'count' ] = $ count ; } if ( $ from_id !== false ) { $ params [ 'interaction_id' ] = $ from_id ; } $ retval = $ this -> _user -> post ( 'stream' , $ params ) ; if ( isset ( $ retval [ 'stream' ] ) ) { $ retval = $ retval [ 'stream' ] ; } else { throw new DataSift_Exception_APIError ( 'No data in the response' ) ; } return $ retval ; }
Call the DataSift API to get buffered interactions.

@param int $count   Optional number of interactions to return (max 200).
@param int $from_id Optional start ID.

@return array
@throws DataSift_Exception_InvalidData
@throws DataSift_Exception_APIError
@throws DataSift_Exception_CompileError
Call the DataSift API to get buffered interactions .