A gem for integrating with Zoho.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install zoro
First we need an authentication token setup for requests:
Zoro.auth_token = "SomeAuthToken"
You can customize Faraday behavior for logging or other things by replacing the Zoro connection. I'll probably change this down stream to allow more configurable.
Zoro.connection = Faraday::Connection.new |conn| do conn.request :url_encoded end
Current this is still very much a work in development, but for generating leads the following works:
lead = Zoro::Lead.new lead.add_field "First Name", "Foo" lead.add_field "Last Name", "Bar" lead.save!
- 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