Skip to content

Pivotsecurity/pivotsecurity-node

Repository files navigation

Pivot Security - Node

Node.js API interface for Pivot Security API.

All updates to this library is documented in our CHANGELOG.

Table of Contents

Installation

Prerequisites

  • Node.js version 1.x. 2.x

Read full docs: https://github.com/Pivotsecurity/pivotsecurity-node/tree/master/doc

Install Package

nom install pivotsecurity-node

Quick Start

Info call with user id (or email).

var account = require('pivotsecurity-node');

// Ontain from www.pivotsecurity.com
account.env('Public_Key','Private_Key');

account.Info('AWQ13', '').on('complete',  function(data, response) {
	if (response.statusCode == 200){
	 console.log(data[0]);
	 }else{
	 	// error
	 }
});


account.Verify('AWQ13', '', '123456').on('complete',  function(data, response) {
	if (response.statusCode == 200){
	 console.log(data[0]);
	 }else{
	 	// error
	 }
});

account.Verify('', 'someon@somewhere.com', '123456').on('complete',  function(data, response) {
	if (response.statusCode == 200){
	 console.log(data[0]);
	 }else{
	 	// error
	 }
});

License

The MIT License (MIT)

About

Node API client libaray to access Pivot Security API

Resources

License

Stars

Watchers

Forks

Packages

No packages published