Skip to content

Philmod/plaid-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plaid node.js client

alt text

plaid-node is a node.js client for Plaid

Documentation

Documentation is available at https://plaid.com/v2/docs.

Install

npm install plaid

Examples

var plaid = require('plaid')({client_id: '123456', secret: '7891011'});

/**
 * Connect/Add a user.
 */
plaid.connect({username: 'demo', password: 'test'}, 'type', 'test@plaid.com', function(error, response, mfa){

	//Non MFA
	console.log(response)

	//MFA
	if (mfa) {
		var answer_question = "this is my answer";
		plaid.step(response.access_token, answer_question, function(err, response){
			//response is accounts and transactions object
		})
	}
});

/**
 * Get a user's transactions, using the access_token
 */
plaid.get(access_token, function(err, res) {
  console.log('Accounts : ', res.accounts);
  console.log('Transactions : ', res.transactions);
});

Test

To run the tests, you need to :

  • Sign up for a key
  • If no keys are provided, the default sandbox only keys will be used
export PLAID_CLIENTID=123456
export PLAID_SECRET=7890
npm test

Tests are written for these institutions:

  • amex
  • bofa
  • citi
  • wells
  • chase

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 100.0%