0.0.2 • Published 8 years ago

one-node-sdk v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

#one-node-sdk Unofficial Thunderhead ONE SDK for NodeJS

##Usage

var OneSdk = require('one-node-sdk');
var config = {
  apiEndpointUrl: "<your_one_uri>",
  siteKey: "<your_sitekey>",
  apiKey: "<your_apikey>",
  apiSecret: "<your_apisecret>",
  userName: "<your_username>"
};
var sdk = new OneSdk(config)

var interactionUri = 'htttp://interaction/path'
var customerKey = 123;
var properties = [];

sdk.sendInteraction(interactionUri, customerKey, properties, function(err, response, body){
    //handle response
});

##Testing

export ONE_URI=<your_one_uri>
export ONE_SITEKEY=<your_sitekey>
export ONE_APIKEY=<your_apikey>
export ONE_APISECRET=<your_apisecret>
export ONE_USERNAME=<your_username>
npm test
0.0.2

8 years ago

0.0.1

8 years ago