bca-api
v1.0.8
Published
BCA(Bank Central Asia) settlement information fetcher written by ES7(NodeJS)
Downloads
9
Readme
BCA API for NodeJS
For users
How to use
npm i -S bca-api
import BCA from 'bca-api'
or seesample/index.js
test/main.js
Login to BCA developers and modify secret.json.sample
- Write some code with
await new BCA().index()
- Contact to
[email protected]
and plan UAT on Whatsapp
How it works
- Curl-exec impementation
- Reference implementation is bca-php
- Tried to use
axios
but some difficulty regarding headers format was there. (I'm waiting for your pull-request!) bca-php
worked well, so I choosed same way.
Note
/src
is written to work onnode-v8.6.0
orbabel-node
/dist
is exported by babel to wrok onnode-v6.9.5
client_id
,client_secret
,api_key
,api_secret
are on dashboardcorporate_id
is on KlikBCA admin dashboardaccount_number
is your company's bank account number
For commiters!
How to start development
npm run install
npm run test:local
- Get
secret.json
by referringNote
section above npm run test:sandbox
###How to publish as npm module
- Write some code and update version on
package.json
- Once delete
node_modules
thennpm run test:sandbox
npm run build
node index.js
for 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