1.0.8 • Published 8 years ago
bca-api v1.0.8
BCA API for NodeJS
For users
How to use
npm i -S bca-apiimport BCA from 'bca-api'or seesample/index.jstest/main.jsLogin to BCA developers and modify secret.json.sample- Write some code with
await new BCA().index() - Contact to
api_support@bca.co.idand plan UAT on Whatsapp
How it works
- Curl-exec impementation
- Reference implementation is bca-php
- Tried to use
axiosbut some difficulty regarding headers format was there. (I'm waiting for your pull-request!) bca-phpworked well, so I choosed same way.
Note
/srcis written to work onnode-v8.6.0orbabel-node/distis exported by babel to wrok onnode-v6.9.5client_id,client_secret,api_key,api_secretare on dashboardcorporate_idis on KlikBCA admin dashboardaccount_numberis your company's bank account number
For commiters!
How to start development
npm run installnpm run test:local- Get
secret.jsonby referringNotesection above npm run test:sandbox
###How to publish as npm module
- Write some code and update version on
package.json - Once delete
node_modulesthennpm run test:sandboxnpm run buildnode index.jsfor confirming no error over currentpackage.json git tag <your version>- !!! Please confirm you're not adding your secret.json !!!
npm publish
Future plan
- Further testability
- Modern HTTP adaptor
- Multiple amount bank account handling for scalability