Trello logo

Introduction

The idea behind this module is to create a simple set of tools to make it easy to do integrations with Trello. For now only reading is supported. The module does nothing in itself, but enables developers to more easily do various things like getting boards or cards without understanding the Trello API

Example Code

I've written a small example of how to display a Trello board in Drupal with all the lists, cards and labels attached to the cards. This shows how easy it can be to display something from Trello on a Drupal site.

try {
  $api = trello_api_get_api();
} catch (TrelloAPIMalconfiguredException $e) {
// Trello API has not been configured, so no calls are possible.
}
$output = NULL;
if (!empty($api)) {
  $board = $api->getBoard('trello_id_of_board');
  // Fetches labels, lists and cards for the board and prepares the data. 
  $board->fetchAllExternal();
  // Render the board with lists, cards and labels.
  $output = $board->view();
}
return $output;

Project information

Releases