0.2.1 • Published 7 years ago

anydo v0.2.1

Weekly downloads
2
License
WTFPL
Repository
github
Last release
7 years ago

anydo

Unofficial Any.do client for Node.js.

Installation

npm install anydo

Quickstart

const anydo = require('anydo')

const options = {
  email: 'your@example.org',
  password: 'super-secret'
}

anydo(options, (err, result) => {
  if (err) throw err
  
  // get the titles of all your tasks
  const taskTitles = result.models.task.items.map(t => t.title)
  console.log(taskTitles) // => [ 'dont worry', 'be happy', ... ]
})

API

anydo(options, callback)

  • options <Object>:
    • email <String>: required
    • password <String>: required
    • hostname <String>: default: sm-prod2.any.do
    • updatedSince <Number>: default: 0
    • includeDone <Boolean>: default: false
    • includeDeleted <Boolean>: default: false

CLI

See: anydo-cli.

License

WTFPL – Do What the F*ck You Want to Public License.

Made with :heart: by @MarkTiedemann.