Code Monkey home page Code Monkey logo

zcrm-ruby-sdk's Introduction

Archival Notice:

This SDK is archived. You can continue to use it, but no new features or support requests will be accepted. For the new version, refer to

ZOHO CRM v2 API SDK :

ZOHO CRM v2.1 API SDK :

ZCRMSDK

The Ruby library for integrating with the Zoho CRM API.

Installation

There are a couple of ways of installing ZCRMSDKK:

Install 1:

Start by adding this line to your application's Gemfile:

gem 'ZCRMSDK'

And follow it with executing this command:

$ bundle

Install 2:

To fully install the CRM API wrapper yourself, just execute this command:

$ gem install ZCRMSDK

Documentation

Usage

Refer SDK documentation for Usage

zcrm-ruby-sdk's People

Contributors

pravesh-a avatar raja-7453 avatar

Watchers

 avatar  avatar  avatar  avatar

zcrm-ruby-sdk's Issues

Error when trying to create a Contact with linked Account Name formed of digits

When I try to create a Contact, with a linked Account that has Account_Name formed of digits, i.e. "778" I receive the following status code: 202. Error message "You do not have sufficient authorization to associate this record. Contact the administrator."
exception code: INVALID_DATA
error details: {"api_name"=>"Account_Name"}

Bug - need to escape query criteria

According to this issue
https://help.zoho.com/portal/community/topic/zoho-crm-api-v2-invalid-query-formed-error
It is necessary to escape special characters in the query (e.g. brackets).

I feel that this should be done at the API level
Here is some code that fails

    module_instance =
      ZCRMSDK::Operations::ZCRMModule.get_instance('accounts')
    crm_data =
        criteria = "(Account_Name:equals:Acme (Co.))"
        api_res = module_instance.search_records_by_criteria(criteria)
        api_res.data[0]
      end

Official sdk?

What the hell is going on with gem's code? Guys are you serious? How "this" became published? 32ΠΊ additions, no code style, 6000 lines of code in every next file. What is it? Why did you publish it?

Better exception messages

I use Exception Notifier gem, which includes the Exception message attribute in the notification.

SDK populates a few attributes in the exception, but not the message, which means we lose valuable insight into the root cause of the message.

Using older version of json gem

The library is using an older version of the json gem.
The newer version has some useful features (e.g. parsing a single value (not an object) correctly)
json 2.2.0

JSON.parse("\"hello\"")
 => "hello" 

json 1.8.6

JSON.parse("\"hello\"")
Traceback (most recent call last):
        1: from (irb):1
JSON::ParserError (784: unexpected token at '"hello"')

Bug - file persistence error on Ubuntu due to file encoding

When using file persistence I encounter an error when refreshing tokens:
Encoding::UndefinedConversionError ("\xBE" from ASCII-8BIT to UTF-8)

I found that the file where the tokens are persisted has encoding of ASCII-8BIT but my encironvoment is using UTF-8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.