node-trello
node-trello copied to clipboard
Error: trello.get is not a function
I'm doing everything correctly according to documentation but I'm continually getting an error returned saying that trello.get is not a function.
Code:
trello.get("/1/lists/" + listId + "/cards?fields=id,name,desc",{ cards: "open" }, function(err, data){ if (err){ console.log(err) }else{ blacklists = data } });
My code above for logging into trello is:
var Trello = require('trello'); var trello = new Trello("KEY", "TOKEN");
I obviously have the Key and Token fields filled.