diigonode
v0.0.2
Published
A wrapper for the Diigo bookmarking service API
Downloads
7
Readme
diigonode
A wrapper for the Diigo bookmarking service API
Usage
Mimics the API spec seen here https://www.diigo.com/api_dev
Example: getting some links
var diigo = require('./diigonode.js');
var getOptions = {
apiKey: '4305d35c3d2126bd',
username: 'username',
password: 'password',
start: '',
count: '1',
sort: '',
tags: 'javascript',
filter: '',
list: ''
};
var getResponse = diigo.getDiigo(getOptions, function(err, results) {
//do stuff with results
});
Example: saving a link
var diigo = require('./diigonode.js');
var saveOptions = {
apiKey: '4305d35c3d2126bd',
username: username,
password: password,
title: 'Test Bookmark',
url: 'http://www.test.com/',
shared: 'no',
desc: 'Test description for test bookmark',
readLater: 'yes'
};
var getResponse = diigo.saveDiigo(saveOptions, function(err, results) {
//do stuff with results
});
That's pretty much it. :D