JSPM

diigonode

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q31134F
  • License BSD

A wrapper for the Diigo bookmarking service API

Package Exports

  • diigonode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diigonode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#diigonode

A wrapper for the Diigo bookmarking service API

##Usage

Mimics the API spec seen here https://www.diigo.com/api_dev

##Install

npm install diigonode

##Example: getting some links

var diigo = require('diigonode');

var auth = {
    password: '',
    username: ''
}

var getOptions = {
    key: '',
    username: 'username',
    password: 'password', 
    start: '', 
    count: '1', 
    sort: '', 
    tags: 'javascript',
    filter: '',
    list: ''
};

diigo.getDiigo(getOptions, auth, function(err, results) {
    //do stuff with results
});

##Example: saving a link

var diigo = require('diigonode');

var auth = {
    password: '',
    username: ''
}

var saveOptions = {
    key: '',
    title: 'Test Bookmark', 
    url: 'http://www.test.com/', 
    shared: 'no', 
    desc: 'Test description for test bookmark',
    readLater: 'yes'
};

diigo.saveDiigo(saveOptions, auth, function(err, results) {
    //do stuff with results
});