Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
coinforbarter-node
Advanced tools
CoinForBarter Nodejs Library - Integrate and Manage cryptocurrency payments for goods and services
CoinForBarter Nodejs Library - Integrate and Manage cryptocurrency payments for goods and services
This is a NodeJs package for implementing CoinForBarter.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. See references for links to dashboard and API documentation.
$ npm install coinforbarter-node
# or
$ yarn add coinforbarter-node
const CoinForBarter = require('coinforbarter-node');
const publicKey = 'xxxxxxxxxxxxx';
const privateKey = 'xxxxxxxxxxxxx';
const secretHash = 'xxxxxxxxxxxxx';
const coinforbarter = new CoinForBarter(publicKey, privateKey, secretHash);
# An example to get all customers
const customers = coinforbarter.Customer.findAll();
This method handles all customers related to your account. The methods exposed by this service are listed below. See customer object properties
This method gets the list of all customers.
const query = {};
const getAllCustomers = async () => {
return await coinforbarter.Customer.findAll(query);
}
See list of query parameters
This method gets a particular customer by id.
const query = {};
const customerId = '';
const getCustomer = async (customerId) => {
return await coinforbarter.Customer.findOne(customerId);
}
This method creates a customer.
const params = {};
const createCustomer = async (params) => {
return await coinforbarter.Customer.create(params);
}
This method updates a customer.
const params = {};
const createCustomer = async (params) => {
return await coinforbarter.Customer.update(params);
}
See customer update parameters
This SDK can be used closely with the official API Reference. All services and methods can be called this way
const customers = c4b.Customer.findAll();
i.e
c4b:{
[service]:method
}
# I will do more on documenting each method till i can complete it 😂
Contributions are open, meta properties are not being returned yet by this SDK. You can send me an email via tochukwu@coinforbarter.com
FAQs
CoinForBarter Nodejs Library - Integrate and Manage cryptocurrency payments for goods and services
We found that coinforbarter-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.