objects-node

Node.js client for Segment Objects API


Keywords
objects, segment, set, warehouses, sources
License
MIT
Install
npm install objects-node@1.0.0

Documentation

objects-node Build Status npm version

Node.js client for Segment Objects API

Setup

To install,

npm install --save objects-node

Then, in your code,

var Objects = require('objects-node');
var objects = new Objects('<your write key>')

Usage

objects.set('<collection>', '<id>', {
  some_property: 'some value',
  name: 'Schrodinger',
  is_alive: true,
  is_dead: true,
  owner: 'Erwin',
  birth_year: 1935
});

License

MIT