docparse-upload-fetch
v1.1.7
Published
Fetch the latest version of an upload document from the docparse database
Downloads
23
Readme
Docparse Upload Fetch
Fetch the latest version of an upload document from the docparse database
Dependency tracking by David
Usage
var inspect = require('eyespect').inspector();
var fetch = require('docparse-upload-fetch');
var data = {
hash: 'foo hash',
updateURL: 'http://username1:[email protected]/api/fetch/12abcd43ef0c1dae7bcd90
user: {} // this should be an instance of docparse-user
}
fetch(data, function(err, reply) {
if(err) {
inspect(err, 'error fetching upload);
return;
}
inspect(reply, 'fetched upload');
});
Installation
npm install docparse-upload-fetch