eggtart

Delicious API node.js client

npm install eggtart
5 downloads in the last week
10 downloads in the last month

Avatar

Build Status Dependencies Status Published Version
npm Badge

Eggtart

Eggtart is a Delicious API node.js client.

This is handy when you want to use Delicious API service from a node.js application. Delicious API methods are available as Eggtart methods, e.g. https://api.delicious.com/v1/posts/recent?count=8 is mapped to eggtart.posts().recent({ count: 8 }, cb); .

Tested with Delicious API v1.

Installation

npm install eggtart

or as a dependency in package.json file:

"dependencies": {
  "eggtart": "x.y.z"
}

Usage

var Eggtart = require('eggtart'),
  eggtart = new Eggtart('username', 'password');

Get recent bookmarks:

eggtart.posts().recent(function (err, result) {
  ...
});

Get bookmarks for specific tags:

eggtart.posts().get({ tag: 'sometag' }, function (err, result) {
  ...
});

Rename tag on all posts:

eggtart.tags().rename({ old: 'foo', new: 'bar' }, function (err, result) {
  ...
})

Fetch tag bundles:

eggtart.tagBundles().all(function (err, result) {
  ...
});

Check out Delicious API documentation for a complete list of available methods.

npm loves you