The Initial State SDK for NodeJS.
npm install initial-state
var IS = ;var bucket = IS;// Push event to initial statebucket;;
Create an event data bucket.
- id – A bucket key. This key cannot contain the colon (:) character.
- accessKey – An Initial State account access key. This argument is not needed if the access key is assigned to the environmental variable
bucket.push(key, value[, date])
Send event data to Initial State.
- key – The event key.
- value – The event value.
- date – The time of the event. A
Dateobject or numeric timestamp (milliseconds since epoch). High-precision timestamps (i.e., sub-ms) can be declared as a string (e.g.,
'1420070400.000000001'), but must be in unix time (seconds since epoch). If not defined, a high-precision timestamp will be generated.