strike-node
v0.0.2
Published
Strike.me API client for node.js
Downloads
1
Readme
Strike.me API client for node.js
Installation
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);
});
Methods
- rates
- profile
- profileById
- events
- eventById
- invoices
- invoice
- invoiceById
- invoiceByUsername
- invoiceQuote
- subscriptions
- subscription
- subscriptionById
rates
GET
client.rates(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
profile
GET
client.profile(username, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
profileById
GET
client.profileById(profileId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
events
GET
client.events(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
eventById
GET
client.eventById(eventId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
invoices
GET
client.invoices(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
invoice
POST
client.invoice(description, amount, currency, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
invoiceById
GET
client.invoiceById(invoiceId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
invoiceByUsername
POST
client.invoiceByUsername(username, description, amount, currency, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
invoiceQuote
POST
client.invoiceQuote(invoiceId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
subscriptions
GET
client.subscriptions(function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
subscription
POST
client.subscription(webhookUrl, webhookVersion, secret, enabled, eventTypes, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});
subscriptionById
GET
client.subscriptionById(subscriptionId, function (error, data) {
if(error) console.log("E!",error)
console.dir(data);
});