bca-api
1.0.8 • Public • Published BCA API for NodeJS
For users
How to use
npm i -S bca-api
import BCA from 'bca-api'
or see sample/index.js
test/main.js
Login to BCA developers and modify secret.json.sample
- Write some code with
await new BCA().index()
- Contact to
api_support@bca.co.id
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 on node-v8.6.0
or babel-node
/dist
is exported by babel to wrok on node-v6.9.5
client_id
, client_secret
, api_key
, api_secret
are on dashboard
corporate_id
is on KlikBCA admin dashboard
account_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 referring Note
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
then npm run test:sandbox
npm run build
node index.js
for confirming no error over current package.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
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads