1.1.0 • Published 7 years ago

rewind-kit v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rewind-kit

Client for api.rewindkit.com

Installation:

npm install rewind-kit --save

Usage:

// Initialize client:

var RewindKit = require('rewind-kit')

const key = 'testKey'
const secret = 'testSecret'
const userId = 'testUserId'

var client = new RewindKit(key, secret, userId)

// GET all ops for a document
client.getOps(docId, function (error, response, body){})

// POST a single op to a document
client.postOp(docId, sequence, version, ops, ts, docType, function (error, response, body){})