node-trello icon indicating copy to clipboard operation
node-trello copied to clipboard

How to add a new card in specific list

Open ranvirgorai opened this issue 7 years ago • 2 comments

ranvirgorai avatar Sep 11 '17 07:09 ranvirgorai

This isn't a bug, you just need to read the trello api docs. ;)

askdesigners avatar Sep 13 '17 20:09 askdesigners

Source in Trello API docs

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

// URL arguments are passed in as an object.
t.post("1/cards", { idList="<your list id>", /* see Trello docs for other props */ }, function(err, data) {
  if (err) throw err;
  console.log(data);
});

dfdeagle47 avatar Oct 16 '17 11:10 dfdeagle47