Ruby API wrapper for Lahar
Installation
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
Usage
Creating a Lead
lead = Lahar::Client.new('lahar_token')
lead.create_lead({ :email => 'foo@bar.com', :nome => 'Foo Bar', nome_formulario: 'nome_da_conversao' })
Changing a Lead
lead = Lahar::Client.new('lahar_token')
lead.change_lead({ :email => 'foo@bar.com', :nome => 'Bar Foo', nome_formulario: 'nome_da_conversao' })
Change Lead Status
lead = Lahar::Client.new('lahar_token')
lead.change_lead_status({ :email => 'foo@bar.com', :estagio_lead => '2' })
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