Skip to content

rahulbile/strike-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

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);
});

About

Strike.me API client for node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published