NuBank API
Not related to NuBank Inc.
Install
yarn add nubank
# or
npm i --save nubank
Usage
First of all you need to sign in to your account using your credentials:
const NuBank = NuBank // just need to call this once // After signing you can now fetch your whole feed// since the very beginning of your relationship with NuBank <3 NuBank
API
Nubank.getCustomer
Gets your customer related information You must have called getLoginToken first.
NuBank.getCustomer().then(customer => console.log(customer))
// The customer object contains your name, address, devices
// reported income, etc.
NuBank.getCustomerAccount
Gets your credit card account information. You must have called getLoginToken first.
NuBank.getCustomerAccount().then(account => console.log(account))
// The account object contains your credit limit, current balance,
// interest rate, bill's due day, net related info, etc.
Thanks
For NuBank for having such a great API!
Notes
This API IS NOT a official API from NuBank Inc. but it does use the same REST api that their web app uses.