Simple wrapper around Zoho CRM version2, using OAuth 2.0 protocol for authentication.
This gem reads your Module configuration and builds the corresponding classes for you, using some reflection mechanisms. You should then be able to use simple classes with an API close to ActiveRecord, to do CRUD operations.
NOTE: this gem is WIP, please try to use it and open an issue if you run into limitations / problems
Add this line to your application's Gemfile:
gem 'zoho_hub'
And then execute:
$ bundle
Or install it yourself as:
$ gem install zoho_hub
First you need to have a configuration block like the one below:
ZohoHub.configure do |config|
config.client_id = 'YOUR_ZOHO_CLIENT_ID'
config.secret = 'YOUR_ZOHO_SECRET'
config.redirect_uri = 'YOUR_ZOHO_OAUTH_REDIRECT_URL'
# config.debug = true # this will be VERY verbose, but helps to identify bugs / problems
end
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run
the tests. You can also run bin/console
for an interactive prompt that will allow you to
experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/rikas/zoho_hub.
The gem is available as open source under the terms of the MIT License.