coins-tracker-importer
v2.0.2
Published
Generates SQL to import tracker data. Specifically it:
Downloads
4
Readme
coins-tracker-importer
Generates SQL to import tracker data. Specifically it:
- generates new trackers, unless matching trackers already exist on API server
- generates a new event associated with adding new responses for an ursi
- generates new tracker responses
- responses map to a pre-defined response if the tracker pre-defined already exists
- else, responses map to custom-text responses on the tracker
install
npm install -g coins-tracker-importer
usage
coins-tracker-importer test/dummy.csv --study=2319 --api=api-server.domain.org --apikey=abc123 --out=tracker-sql.out
where the csv looks similair to:
ursi,tracker_name_1,tracker_name_2,...,tracker_name_n
M123,tracker_resp_1,tracker_resp_2,...,tracker_resp_n
options
flags
api
required, server where api installedapikiey
required, key to tap into apiforce
optional, warn some error cases vs error outstudy
required, study idout
option, generate sql to file, else shows in STDOUT
changelog
- 2.0.0 - support existing data, map to existing trackers and pre-def response options