Skip to content
This repository was archived by the owner on Jun 7, 2019. It is now read-only.

codemotionapps/angular-trello-api-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An angular client API bypassing the client.js file provided by Trello (no jQuery dependency)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%