datasift-historics
Library for use with DataSift Historics API
Last updated 7 years ago by steeeve .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install datasift-historics 
SYNC missed versions from official npm registry.

DataSift Historics

A node.js library to interface with the DataSift Historics API

Installation

npm install datasift-historics

Usage

var historics,
    oneDayAgo;

oneDayAgo = Math.floor( new Date().getTime() / 1000 ) - 86400;

historics = new Historics(
    {
      'username': '[YOUR DATASIFT USERNAME HERE]'
      'key': '[YOUR DATASIFT API KEY HERE]'
    },
    {
        'hash': '[YOUR SUBSCRIPTION HASH HERE]',
        'start': oneDayAgo - 3600,
        'end': oneDayAgo,
        'output_type': 'mongodb',
        'output_params': {
            
        }
    }
);

historics.on( 'ready', function( info ) {
    historics.start();
});

Current Tags

  • 0.5.1                                ...           latest (7 years ago)

2 Versions

  • 0.5.1                                ...           7 years ago
  • 0.5.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |