GithubHelp home page GithubHelp logo

agilecrm-wrapper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

agilecrm-wrapper's Issues

Address example?

Hi,

Do you have an example of how to add an address to a customer?

just adding address: "123 St", city: "Chicago" into AgileCRMWrapper::Contact.create() doesn't seem to be doing it.

Tag name restrictions

Back in March the AgileCRM team rolled out their tag naming restrictions.

Tag name restriction has been put forth - tag names anywhere within the CRM, be it Contacts, Integrations, Data Sync, Forms, API or others, can have no special characters other than 'space' and 'underscore'

It seems like the sort of thing we might want to add support for at some point, but I'm not sure what the best way to do it would be.

One option would be to have a new config setting to have all tag names automatically converted to meet AgileCRMs restrictions. It would be the most DRY approach, but it might lead to confusion if the user forgets/accidentally enables the config and finds that all his tags aren't being created in a way that they expect. The other avenue is to add be as explicit as possible, a la:

contact.update(
  { tags: ['foo-bar'] },
  { auto_format_tags: true }
)

I'll leave this here for now to stew.

Company api

Hi there. thx for your awesome work first of all :) i'am preparing companies pr and want to ask a few questions first.

  1. WTF is subtype ? is it some reserved values or just another type of custom ones ?
  2. if u have no idea on first one , will you agree with folowing code ? AgileCRMWrapper::Company.create({star_value: 0}, [{type: 'SYSTEM', value: 'TEST', name: 'name'}, {name: 'website', value: 'https://example.com', subtype: 'LINKEDIN'}])

Doesn't work with Faraday 0.8.0

Hey.

Was using your gem on a project, just wanted to let you know that it won't work with Faraday 0.8.0 Might want to list it on the gemspec.
Upgrading Faraday to 0.9.0 fixes it.

The error:

[28] pry(main)> AgileCRMWrapper::Contact.all
NoMethodError: undefined method `status' for #<Hash:0x0000011655e5f8>
from /Users/PrettyPC/.rvm/gems/ruby-2.1.3@backend-saas/gems/agilecrm-wrapper-1.0.0/lib/agilecrm-            wrapper/response/raise_error.rb:10:in `on_complete'

If property type has more than 1 value causes error

For example, if a contact has 3 phone numbers the system will generate the following error on the call

contact.get_property("phone")
ArgumentError: wrong number of arguments (3 for 0..1)
from /Users/pjohn/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/ostruct.rb:87:in initialize' from /Users/pjohn/.rvm/gems/ruby-2.1.5/gems/agilecrm-wrapper-1.0.1/lib/agilecrm-wrapper/contact.rb:102:innew'
from /Users/pjohn/.rvm/gems/ruby-2.1.5/gems/agilecrm-wrapper-1.0.1/lib/agilecrm-wrapper/contact.rb:102:in `get_property'

Also, applies for email property

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.