Giter Site home page Giter Site logo

trello-api's Introduction

Trello API

This is a wrapper for some of the Trello HTTP API. Please feel free to add any other pieces you need! :)

Usage

Log in to Trello and visit trello.com/app-key to get a token and app key. These need to be supplied when you create the Trello object (see below).

Installation

npm install trello-api --save

Example

import {Trello} from 'trello-api';

let trello = new Trello('MY APPLICATION KEY', 'MY USER TOKEN');

trello.getTokens('MY MEMBER ID')
    .then((res) => console.log(res))
    .catch((err) => console.log(err));

Requests to API endpoints, not supported by this lib yet

import {Trello} from 'trello-api';

let trello = new Trello('MY APPLICATION KEY', 'MY USER TOKEN');

// Get all registered tokens and webhooks
// Url will look like: https://api.trello.com/1/members/me/tokens?webhooks=true&key=YOURKEY&token=YOURTOKEN
trello.request('get', '/1/members/me/tokens', { webhooks: true })
    .then((res) => console.log(res));

Available functions

tokens

方法 Path
Trello::getTokens GET /members/{id}/tokens

boards

方法 Path
Trello::getBoards GET /members/{id}/boards
lists
方法 Path
Trello::getLists GET /boards/{id}/lists

cards

方法 Path
Trello::getCards GET /boards/{id}/cards
Trello::getCardsOnList GET/lists/{id}/cards

checklists

方法 Path
Trello::getChecklists GET /boards/{id}/checklists
Trello::getChecklistsOnCards GET/cards/{id}/checklists

actions [type=commentCard]

方法 Path
Trello::getComments GET /boards/{id}/actions?filter=commentCard
Trello::getCommentsOnCards GET/cards/{id}/actions?filter=commentCard

History

0.0.1

  • Version init

trello-api's People

Contributors

stultuss avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.