Node wrapper for Trello’s HTTP API.
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=tokenreplacing, of course, <PUBLIC_KEY> with the public key obtained in the first step.
- If you never want the token to expire, include
&expiration=neverin the url from the previous step.
- If you need write access as well as read,
&scope=read,writeto the request for your user token.
Fetching card data
var Trello = ;var t = "<your key>" "<token>";t;// URL arguments are passed in as an object.t;
Uploading attachments to a card
var fs = ;var path = ;var Trello = ;var t = "<your key>" "<token>";var cardId = "<the card id>";var pathToFile = path;t
Released under MIT.