digit-co / node-intuit

Node.js client for Intuit's Customer Account Data API
MIT License
2 stars 1 forks source link

node-intuit

Synopsis

Inspired by https://github.com/cloocher/aggcat, this is a node module for interacting with Intuit's Customer Account Data (CAD) API.

Code Example

fs = require "fs"
path = require "path"
userId = "1"

config =
  issuerId: "issuer-id"
  consumerKey: "consumer-key"
  consumerSecret: "consumer-secret"
  key: fs.readFileSync path.join(__dirname, "app.key"), "utf8"
  certificate: fs.readFileSync path.join(__dirname, "app.crt"), "utf8"
  certificatePassword: "password"

intuit = require("node-intuit")(config)

intuit.getInstitutionDetails userId, 100000, (err, institutionDetails) ->
  console.log institutionDetails
  process.exit()

Installation

npm install --save node-intuit

API Reference

See the tests for all APIs with expected responses.

Tests

npm test

Debug with DEBUG=node-intuit*.