No description, website, or topics provided.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples created a little example for running the request Nov 7, 2012
lib
test Brutal hack job Oct 28, 2013
.gitignore Fixed up using the damn swp files. Started stubbing out http Nov 6, 2012
.ruby-gemset Added an account object for the crm module and started breaking out r… Oct 1, 2013
.ruby-version Added an account object for the crm module and started breaking out r… Oct 1, 2013
Gemfile Initial commit for zoro gem Nov 5, 2012
LICENSE.txt Initial commit for zoro gem Nov 5, 2012
README.md Added an account object for the crm module and started breaking out r… Oct 1, 2013
Rakefile First passing test. Not sure this is the implementation route I want … Nov 6, 2012
zoro.gemspec Added a home page for zoro Oct 15, 2013

README.md

Zoro Build Status

A gem for integrating with Zoho.

Installation

Add this line to your application's Gemfile:

gem 'zoro'

And then execute:

$ bundle

Or install it yourself as:

$ gem install zoro

Usage

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!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request