npm install strike-node
const strike = require('strike-node');
const apiKey ="your_api_key";
const client = new strike(apiKey);
client.profile('rahulbile', function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
- rates
- profile
- profileById
- events
- eventById
- invoices
- invoice
- invoiceById
- invoiceByUsername
- invoiceQuote
- subscriptions
- subscription
- subscriptionById
GET
client.rates(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.profile(username, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.profileById(profileId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.events(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.eventById(eventId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.invoices(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
POST
client.invoice(description, amount, currency, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.invoiceById(invoiceId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
POST
client.invoiceByUsername(username, description, amount, currency, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
POST
client.invoiceQuote(invoiceId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.subscriptions(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
POST
client.subscription(webhookUrl, webhookVersion, secret, enabled, eventTypes, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
GET
client.subscriptionById(subscriptionId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});