Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1021 Bytes

README.md

File metadata and controls

45 lines (34 loc) · 1021 Bytes

Angular Trello API Client

An angular Trello Client bypassing the Trello client.js (based on jQuery). This Client use Satellizer for authentication.

You don't know Trello? Youhou, this is the day your life changed!

Installation

# Bower
bower install angular-trello-api-client

Usage

angular.module('demo', [
  'ng',
  'satellizer',
  'trello-api-client',
])

.config(function(TrelloClientProvider){
  TrelloClientProvider.init({
    key: 'trello app key',
    appName: 'Your app name displayed in authentication popup',
    tokenExpiration: 'never',
    scope: ['read', 'write', 'account'],
  });
})

.controller('demoCtrl', function($scope, TrelloClient){

  $scope.authenticate = TrelloClient.authenticate

  $scope.getMyBoards = function(){
    TrelloClient.get('/members/me/boards').then(function(response){
      console.log(response);
    });
  };
});

Trello API Doc