This SDK allows you to easily integrate Horntell in your NodeJS applications.
NodeJS 0.10.x or later.
You can install the SDK using NPM. Add this to your package.json file.
{
"dependencies": {
"horntell": "0.3.x"
}
}Then, pull the package using the following command:
npm install
You need to initialize the SDK with the app's key and secret, which you can find in your account at http://app.horntell.com. Sample usage looks like this.
'use strict';
var Horntell = require('horntell');
Horntell.app.init('YOUR_APP_KEY', 'YOUR_APP_SECRET');
Horntell.profile.create({
uid: '1337',
first_name: 'John',
last_name: 'Doe',
signedup_at: 1383350400
}).then(successCallback, errorCallback);Please see http://docs.horntell.com/api for up-to-date documentation.