trello-bug

0.1.1 • Public • Published

trello-bug

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

Install

npm install trello-bug

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 never want the token to expire, include &expiration=never in the url from the previous 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('trello-bug');
trello.init('<PUBLIC_KEY>', '<TOKEN>', '<USERNAME or USERID>', '<BOARD>', '<LIST>', function (err) {
    if(err) throw err;
    trello.sendBug(<CODE>, <NAME>, <DESCRIPTION>, function (err, data) {
        if (err) throw err;
        console.log(data);
    });
});

License

Released under MIT.

Readme

Keywords

Package Sidebar

Install

npm i trello-bug

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • maxndev