lib/DataSift/ODP.php
public function ingest($data_set)
    {
        if (strlen($this->_source_id) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot make request without a source ID');
        }

        if (empty($data_set)) {
            throw new DataSift_Exception_InvalidData('Cannot make request without a valid data set');
        }

        return $this->_user->post($this->getSourceId(), $data_set, array(), true);
    }
public function ingest($data_set)
    {
        if (strlen($this->_source_id) == 0) {
            throw new DataSift_Exception_InvalidData('Cannot make request without a source ID');
        }

        if (empty($data_set)) {
            throw new DataSift_Exception_InvalidData('Cannot make request without a valid data set');
        }

        return $this->_user->post($this->getSourceId(), $data_set, array(), true);
    }
public function ingest ( $ data_set ) { if ( strlen ( $ this -> _source_id ) == 0 ) { throw new DataSift_Exception_InvalidData ( 'Cannot make request without a source ID' ) ; } if ( empty ( $ data_set ) ) { throw new DataSift_Exception_InvalidData ( 'Cannot make request without a valid data set' ) ; } return $ this -> _user -> post ( $ this -> getSourceId ( ) , $ data_set , array ( ) , true ) ; }
Generates a curl request to the Ingestion Endpoint
Generates a curl request to the Ingestion Endpoint