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