@littlebluefox/littlebluefox-nodejs
Offcial client for LittleBlueFox.io API
Last updated a year ago by littlebluefox .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @littlebluefox/littlebluefox-nodejs 
SYNC missed versions from official npm registry.

Installation

$ npm install @littlebluefox/littlebluefox-nodejs

Usage

const littlebluefox = require('@littlebluefox/littlebluefox-nodejs');

const lbfClient = littlebluefox.makeClient(accessToken);

var event = {
  event_type: 'authentication_success', # event type
  uref: '...',      # user id, or sha256(user.id), or another string
  email: '...',     # user email
  remote_ip: '...', # current user ip
  http_headers: {
    'User-Agent': '...'
  }
};

lbfClient
  .push(event)
  .then(() => {
    console.log('security event sent');
  })
  .catch((err) => {
    console.error(err);
  });

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 6
Last Day 2
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |