appuri-event-api-client

0.2.0 • Public • Published

Appuri Event Sink Client

A NodeJS Promise-based client for sending a stream of events to Appuri's Events API

Usage

The following example uses through2 to convert a custom data format to Appuri's Event Format.

node
const eventAPI = require('appuri-event-api-client'),
      through2 = require('through2')

function transform(chunk, enc, cb) {

    // convert custom event type to appuri event
}

eventAPI(through2.obj(transform), 'your-event-write-key')
    .then(() => console.log('Complete!'))
    .catch(error => console.log('Failed to upload: ', error))

Readme

Keywords

Package Sidebar

Install

npm i appuri-event-api-client

Weekly Downloads

1

Version

0.2.0

License

ISC

Last publish

Collaborators

  • bincdianshangcun
  • nathanboktae
  • tmacie