Beeleads
A Ruby interface to the Beeleads API.
Installation
Add this line to your application's Gemfile:
gem 'beeleads'
And then execute:
$ bundle
Or install it yourself as:
$ gem install beeleads
Usage
In order to use Beeleads' Lead Integration API (version 1.0) make sure you have the following information:
- Affiliate ID
- API Secret
- Offer ID
If you are missing any of this info, please contact [email protected].
require 'beeleads'
client = Beeleads::Client.new({:api_affiliate_id => ENV['API_AFFILIATE_ID'], :api_secret => ENV['API_SECRET'], :api_offer_id => ENV['API_OFFER_ID']})
client.lead({'email' => '[email protected]', 'firstname' => 'Tiago'})
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request