0.1.9 • Published 11 years ago

scribd v0.1.9

Weekly downloads
7
License
-
Repository
github
Last release
11 years ago

scribd

Scribd REST API binding for Node.JS.

Installing

GIT

$ git clone https://github.com/firejune/scribd.git

NPM

$ npm install scribd

Usage

var Scribd = require('scribd');

var Scribd_api_key = "ENTER-YOUR-API-KEY-HERE"
  , Scribd_secret = "ENTER-YOUR-API-SECRET-HERE"; 

var scribd = new Scribd(Scribd_api_key, Scribd_secret);


// callback, file, docType, access, revId
scribd.upload(function(err, res) {
  console.log('scribd.upload', err, res);
}, './aaa.docx');

// callback, url, docType, access, revId
scribd.uploadFromUrl(function(err, res) {
  console.log('scribd.uploadFromUrl', err, res);
}, 'url');

// callback, docId
scribd.remove(function(err, res) {
  console.log('scribd.remove', err, res);
}, 'docId');


// callback, query, numResults, numStart, scope
scribd.search(function(err, res) {
  console.log('\nscribd.search', err, res);
}, 'Node.JS', 1);

// callback
scribd.getList(function(err, res) {
  console.log('\nscribd.getList', err, res);
});


// callback, docId
scribd.getConversionStatus(function(err, res) {
  console.log('\nscribd.getConversionStatus', err, res);
}, docId);

// callback, docId
scribd.getSettings(function(err, res) {
  console.log('\nscribd.getSettings', err, res);
}, docId);

// callback, docId, title, description, access, license, showAds, tags
scribd.changeSettings(function(err, res) {
  console.log('\nscribd.changeSettings', err, res);
}, 'docId', 'title');


// callback, username, password
scribd.login(function(err, res) {
  console.log('\nscribd.login', err, res);
}, 'username', 'password');

// callback, username, password, email, name
scribd.signup(function(err, res) {
  console.log('scribd.signup', err, res);
}, 'username', 'password', 'email', 'name');

Have fun!

License

MIT <3

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago