nozpheratu / agilecrm-wrapper Goto Github PK
View Code? Open in Web Editor NEWRuby wrapper for Agile CRM API.
License: MIT License
Ruby wrapper for Agile CRM API.
License: MIT License
Hi there. thx for your awesome work first of all :) i'am preparing companies pr and want to ask a few questions first.
AgileCRMWrapper::Company.create({star_value: 0}, [{type: 'SYSTEM', value: 'TEST', name: 'name'}, {name: 'website', value: 'https://example.com', subtype: 'LINKEDIN'}])
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.
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'
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:in
new'
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.