An angular service to consume the Yodlee API.
Download the module into your project.
bower install https://github.com/jbeuckm/ng-yodlee.git
Include the script on your root html page.
<script src="bower_components/ng-yodlee/index.js"></script>
Inject the dependency.
angular.module('myApp', ['ng-yodlee'])
.controller('MyController', (YodleeService) => {
...
These are essential steps to connect your "Cobrand" account and access a user's data.
YodleeService.setCobrandName(cobrand_name);
YodleeService.cobrand.login(cobrand_login, cobrand_password)
.then(() => {
YodleeService.user.login(user_name, user_password);
});
After this, the service is able to make requests for that user's data.
YodleeService.accounts.accounts();
YodleeService.accounts.historicalBalances();
YodleeService.transactions.transactions();
YodleeService.holdings.holdings();
YodleeService.derived.networth();
YodleeService.derived.holdingSummary();
These requests all return promises that resolve with the associated responses.