node-trello

Node wrapper for Trello's HTTP API.

npm install node-trello
83 downloads in the last day
369 downloads in the last week
1 538 downloads in the last month

Node wrapper for Trello’s HTTP API.

Build Status

View Trello’s API documentation online. For information on Trello’s API development, visit their Trello board, of course.

Install

npm install node-trello

Getting your key and token

  • Generate your developer key and supply it as the first constructor parameter.
  • To read a user’s private information, get a token by directing them to https://trello.com/1/connect?key=<PUBLIC_KEY>&name=MyApp&response_type=token replacing, of course, <PUBLIC_KEY> with the public key obtained in the first step.
  • If you need write access as well as read, &scope=read,write to the request for your user token.

Example Code

var Trello = require("node-trello");
var t = new Trello("<your key>", "<token>");

t.get("/1/members/me", function(err, data) {
  if (err) throw err;
  console.log(data);
});

// URL arguments are passed in as an object.
t.get("/1/members/me", { cards: "open" }, function(err, data) {
  if (err) throw err;
  console.log(data);
});
npm loves you