docparse-upload-fetch

1.1.7 • Public • Published

Docparse Upload Fetch

Fetch the latest version of an upload document from the docparse database. The upload should be an instance of docparse-upload.

Build Status Dependency Status Dependency tracking by David

Usage

var inspect = require('eyespect').inspector();
var fetch = require('docparse-upload-fetch');
var data = {
  hash: 'foo hash',
  updateURL: 'http://username1:password1@pdfer.local/api/fetch/12abcd43ef0c1dae7bcd90
  userID: 'fooID' // this should be the _id ObjectId of a docparse-user instance
}
fetch(data, function(err, reply) {
  if(err) {
    inspect(err, 'error fetching upload);
    return;
  }
  inspect(reply, 'fetched upload');
});

Installation

npm install docparse-upload-fetch

Readme

Keywords

none

Package Sidebar

Install

npm i docparse-upload-fetch

Weekly Downloads

2

Version

1.1.7

License

BSD

Last publish

Collaborators

  • clewfirst