angular-trello-api-client

1.0.0 • Public • Published

Angular Trello API Client

An angular Trello client bypassing the Trello client.js (based on jQuery). This client uses Satellizer for authentication. Meant to be used with webpack.

Usage

angular.module('myAwesomeApp', [
  require('satellizer'),
  require('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

Package Sidebar

Install

npm i angular-trello-api-client

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • dnoldstuff