0.0.2 • Published 10 years ago

simplenote v0.0.2

Weekly downloads
9
License
-
Repository
-
Last release
10 years ago

SimpleNote

SimpleNote API wrapper

Example

var Note = SimpleNote(email, pass)
Note.all(function(err, notes) {
  var keys = notes.select('blog').map('key');
  note.get(keys[0], function(err, note) {
    console.log(note.content);
  })
});

API

all(n, fn)

Get n note indexes from the server. Defaults to 100. fn has the signature function(err, notes) where notes is an array

get(key, fn)

Get a note's data by key. key corresponds to the key returned by the index.

TODO

  • update
  • delete
  • create
  • tag