This SDK allows you to easily integrate Horntell in your Ruby applications.
Ruby 1.9.2 and later.
openssl
compiled with your Ruby installation
Gems: rest-client, json
You don't need this source code unless you want to modify the gem. If you just want to use the Horntell Ruby SDK, you should run:
gem install horntell
If you want to build the gem from source, run this:
gem build horntell.gemspec
If you are installing via bundler, you should be sure to use the https rubygems source in your Gemfile, as any gems fetched over http could potentially be compromised in transit and alter the code of gems fetched securely over https:
source 'https://rubygems.org'
gem 'horntell'
And then execute:
bundle install
You need to init
ialize 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.
Horntell::App.init('YOUR_APP_KEY', 'YOUR_APP_SECRET');
Horntell::Profile.create({
:uid => "1337",
:first_name => "John",
:last_name => "Doe",
:signedup_at => 1383350400
})
Please see http://docs.horntell.com/api for up-to-date documentation.