README
CoinForBarter V1 NodeJs Library
How to use
const CoinForBarter = require('coinforbarter -node-v3');
const c4b = new CoinForBarter(PUBLIC_KEY, SECRET_KEY, SECRET_HASH);
const customers = c4b.Customers.findAll();
For staging, Use TEST API Keys. For production, use LIVE API KEYS. You can get your PUBLIC_KEY and SECRET_KEY from the CoinForBarter dashboard.
Go here to get your API Keys.
Turn on Test Mode to get TEST API KEYS and Turn off Test Mode to get LIVE API KEYS
CoinForBarter Services exposed by the library
Customer
Methods
- findAll
- findOne
- create
- update
BankAccount
Methods
- getBankAccountName
- create
- findAll
- findOne
- makePrimary
- getBanks
Payment
Methods
- findOne
- findAll
- create
- setCurrency
- lockCurrency
- getPaymentUpdates
- cancel
PaymentPlan
Methods
- findAll
- findOne
- create
- update
PaymentPlanSubscriber
Methods
- create
- findOne
- findAll
- remove
Payout
Methods
- findAll
- findOne
Transaction
Methods
- findAll
- findOne
- verify
- events
- getFee
- webhook
Transfer
Methods
- findAll
- findOne
- create
- getFee
WalletAddress
Methods
- create
- findAll
- findOne
- makePrimary
Webhook
Methods
- validate
Misc
Methods
- getCountries
- getBalance
- getCurrencies
All methods can be called this way
const customers = c4b.Customer.findAll();
i.e
c4b:{
[service]:method
}
For more information on the services listed above, visit the CoinForBarter documentation
CoinForBarter V1 NodeJs Library is an MIT -licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - [Nwachukwu, Kingsley Tochukwu](https://linkedin.com/in/t-kings)
- Website - [https://coinforbarter.com](https://coinforbarter.com/)
- Twitter - [@t-kings](https://twitter.com/t-kings)
License
CoinForBarter is MIT licensed.