Skip to content

garrettlangley/plaid-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/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', '[email protected]', 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
  • us
  • usaa

License

MIT

About

Node bindings for Plaid

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.7%
  • Makefile 2.3%