node-crocodoc

0.0.2 • Public • Published

Node API client for Crocodoc

This is a very simple wrapper over the Crocodoc Web API. Pretty must just maps to what's available in the Crocodoc API docs

Installation

npm install node-crocodoc

Requires request.

Usage

var Crocodoc = require("node-crocodoc");

// instaniate an instance of the API with some default options
var crocodoc = new Crocodoc({
	token: "[KEY GOES HERE],
	async: false,
	private: false,
	editable: false,
	downloadable: true
});

var uuid = [some uuid];

// get private access to a document
crocodoc.getSession(uuid, { private: true }, function(err, session) {
	console.log(session);
});

// same method - defaults to default options set in the constructor
crocodoc.getSession(uuid, function(err, session) {
	console.log(session);
});

// delete a document
crocodoc.delete(uuid, function(err, res) {
	console.log(res);
});

// check the status of a document (you can also pass in an array of uuids)
crocodoc.stats(uuid, function(err, res) {
	console.log(res);
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i node-crocodoc

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • storminwalker