Intuit Customer Account Data API client
Aggcat is available through Rubygems and can be installed via:
$ gem install aggcat
or add it to your Gemfile like this:
gem 'aggcat'
Register for Intuit Customer Account Data.
Get your OAuth data.
require 'aggcat'
# Aggcat global configuration
Aggcat.configure do |config|
config.issuer_id = 'your issuer id'
config.consumer_key = 'your consumer key'
config.consumer_secret = 'your consumer secret'
config.certificate_path = '/path/to/your/certificate/key'
end
# alternatively, specify configuration options when instantiating an Aggcat::Client
client = Aggcat::Client.new(
issuer_id: 'your issuer id',
consumer_key: 'your consumer key',
consumer_secret: 'your consumer secret',
certificate_path: '/path/to/your/certificate/key',
customer_id: 'scope for all requests'
)
# scope Aggcat client and all subsequent requests by customer id
Aggcat.scope(customer_id)
# get all supported financial institutions
Aggcat.institutions
# get details for Bank of America
Aggcat.institution(14007)
# add new financial account to aggregate from Bank of America
Aggcat.discover_and_add_accounts(14007, username, password)
# get already aggregated financial account
Aggcat.account(account_id)
# you can set scope inline for any request
Aggcat.scope(customer1).account(account_id)
# get all aggregated accounts
Aggcat.accounts
# update login credentials
Aggcat.update_login(institution_id, login_id, new_username, new_password)
# delete account
Aggcat.delete_account(account_id)
# get account transactions
Aggcat.account_transactions(account_id, start_date, end_date)
# delete customer for the current scope
Aggcat.delete_customer
Please make sure to read Intuit's Account Data API docs.
- Ruby 1.9.2 or higher
Copyright (c) 2013 Gene Drabkin. See LICENSE for details.