New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

blockstarter-wl

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockstarter-wl

Blockstarter white-label API for integration

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-57.89%
Maintainers
1
Weekly downloads
 
Created
Source

Blockstarter White Label API

This is library helps to integrate blockstarter with client's dashboard

Install

npm i blockstarter-wl

Usage

First of all define a storage


var storage;
  storage = {
    sessionId: null,
    apiKey: 'TEST-APIKEY'
  };

Auth

Login or Register


var blockstarter = require('blockstarter-wl');

if (storage.apiKey == null) {
  throw "API Key is required";
}

blockstarter.auth({
  email: 'test@test.com',
  password: 'unique password',
  project: 'KickCity',
  reference: 'traffic-source',
  apiKey: storage.apiKey
}, function(err, session){
      if (err != null) {
        throw err;
      }
      if (session.sessionId == null) {
        throw "Session ID is missing";
      }
      storage.sessionId = session.sessionId;
      console.log(session.sessionId);
});

Get Dashboard

Information about Totals, Rates, Currencies, etc.

  
if (storage.sessionId == null) {
      throw "Session is required";
}

if (storage.apiKey == null) {
      throw "API Key is required";
}
    
blockstarter.panel(storage, function(err, dashboard){
  if (err != null) {
    throw err;
  }
  storage.dashboard = dashboard;
  console.log(dashboard);
});
Get Address

Get [btc, ltc, eth, waves, dash, zec] address


if (storage.sessionId == null) {
  throw "Session is required";
}
if (storage.apiKey == null) {
  throw "API Key is required";
}
if (storage.dashboard == null) {
  throw "Dashboard is required";
}

var type = 'ltc';

var request = (storage.type = type, storage);

address(request, function(err, addressInfo){
  if (err != null) {
    throw err;
  }
  console.log(addressInfo);
});

Ask for help

User can ask for help and admin will contact him by email


if (storage.sessionId == null) {
  throw "Session is required";
}
if (storage.apiKey == null) {
  throw "API Key is required";
}
helpMe(storage, function(err, info){
  if (err != null) {
    throw err;
  }
  console.log('done')
});

Keywords

FAQs

Package last updated on 11 Sep 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc