troll-client
v0.0.4
Published
A promise based Trello client usable from npm
Downloads
8
Readme
Troll-Client: A Modern Trello Client For Browsers/Electron
This is still a (big-time) WIP, but is an attempt to port Trello's client.js to be more useful in a modern setup. It loses the jQuery dependency, instead depending on fetch and promises.
Currently it is only usable in modern browsers, I intend to make it easier to use with fetch polyfills on Node, and may explore transpiling away the ES6 features currently used in the code. This is early days, but contributions are welcome.
Usage
var Trello = require('troll-client');
var t = new Trello('<application-key>');
t.authorize({
type: 'popup',
name: 'Getting Started Application',
scope: {
read: true,
write: true
},
expiration: 'never',
}).then(() => {
t.get('members/me').then((data) => console.log(data));
})