A Node.js wrapper for the MinuteDock API v1
- node.js
- A MinuteDock API Key
npm install minutedock
var http = require('http'),
Minutedock = require('minutedock');
var md = new Minutedock(
'API_KEY'
);
http.createServer(function (req, res) {
md.projects.all(function (err, projects) {
if (err)
res.end('Could not load your projects!');
res.end(projects);
});
}).listen(8080);
console.log('Server running at http://localhost:8080/');
All methods from beta v1 on Minutedock are supported as per: http://minutedock.com/apidocs
accounts.all(callback)
accounts.active(callback)
users.all(accountID, callback)
entries.current(callback)
entries.update(id, data, callback)
entries.start(callback)
entries.pause(callback)
entries.log(callback)
entries.new(accountID, data, callback)
entries.search(data, callback)
contacts.all(accountID, callback)
contacts.new(accountID, data, callback)
contacts.update(id, data, callback)
tasks.all(accountID, callback)
tasks.new(accountID, data, callback)
tasks.update(id, data, callback)
tasks.delete(id, callback)
tasks.archive(id, callback)
projects.all(accountID, callback)
projects.new(accountID, data, callback)
projects.update(id, data, callback)
projects.delete(id, callback)
projects.archive(id, callback)