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 => '[email protected]', :nome => 'Foo Bar', nome_formulario: 'nome_da_conversao' })
lead = Lahar::Client.new('lahar_token')
lead.change_lead({ :email => '[email protected]', :nome => 'Bar Foo', nome_formulario: 'nome_da_conversao' })
lead = Lahar::Client.new('lahar_token')
lead.change_lead_status({ :email => '[email protected]', :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