Node.js API interface for Pivot Security API.
All updates to this library is documented in our CHANGELOG.
- Node.js version 1.x. 2.x
Read full docs: https://github.com/Pivotsecurity/pivotsecurity-node/tree/master/doc
nom install pivotsecurity-node
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
}
});