Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
yodlee-transactions
Advanced tools
Readme
===Yodlee API helper ===
This npm module will let you grab amount of money spent on transactions, filtered by category.
$ npm install --save yodlee-transactions
//If you look into the node modules and check the test.js file, it will have a test example to work off of.
var yodlee = require('yodlee-transactions');
Yodlee requires a cobSessionToken before we can access the API. Get your credentials here.
Yodlee uses the standard oauth authentication flow in order to allow apps to act on a user's behalf. The API provides a convenience method to help you authenticate your users.
below snippet is a starting point on using this module.
var yodlee = require("./index");
var cobrandUser = ""; //example format in sbCobxxxxx
var cobrandPassword = ""; //format is xxxx-xxx-xxx-xxx-xxxx the number of x is not accurate
var userName = ""; //example formats are sbMemxxxxx
var userPassword = ""; //example formate are in sbMemxxxxx
var cobSessionToken = "";
var userSessionToken = "";
var accounts = [];
function generateCobToken(cobrandUser, cobrandPassword){
return yodlee.getCobSession(cobrandUser, cobrandPassword)
.then(function(data){
var dataObj = JSON.parse(data);
cobSessionToken = dataObj.session.cobSession;
return cobSessionToken;
});
}
function generateUserToken(userName, userPassword){
return function(cobSessionToken){
return yodlee.getUserSession(cobSessionToken, userName, userPassword)
.then(function(user){
var userObj = JSON.parse(user);
userSessionToken = userObj.session.userSession;
return userSessionToken;
});
}
}
function getAccounts() {
return yodlee.getAccounts(cobSessionToken, userSessionToken)
.then(function(data){
var dataObj = JSON.parse(data);
accounts = [] //clearing it out kind of
for (var k in dataObj){
if (dataObj.hasOwnProperty(k)){
accounts.push(dataObj[k]);
}
}
})
}
function getTransactions(accountId, fromDate, toDate) {
return yodlee.getTransactions(cobSessionToken, userSessionToken, accountId, fromDate, toDate)
.then(function(data){
return JSON.parse(data);
})
}
function getCategorySpending(transactionObj) {
return yodlee.getCategorySpending(transactionObj);
}
//Running here
generateCobToken(cobrandUser, cobrandPassword)
.then(generateUserToken(userName, userPassword))
.then(function(){
getAccounts();
getTransactions()
.then(getCategorySpending);
})
Returns the information related to the specified accounts aggregated by the User: Yodlee Docs
FAQs
functions to pull aggregate transaction data from Yodlee api
The npm package yodlee-transactions receives a total of 8 weekly downloads. As such, yodlee-transactions popularity was classified as not popular.
We found that yodlee-transactions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.