bvalosek / infusionsoft-api Goto Github PK
View Code? Open in Web Editor NEWA promise-driven Node.js wrapper for the XML-RPC Infusionsoft API
License: MIT License
A promise-driven Node.js wrapper for the XML-RPC Infusionsoft API
License: MIT License
This looks like a very handy library, but I'm hesitant to use it without tests. Do you have plans to test, or have you identified barriers that would prevent it?
It looks like the dots in the field names of the ContactGroupAssign table caused those fields to be left off of the class for that table. I am not sure how to go about correcting this in grunt-infusionsoft, or if it is even possible given the current tool set. Any thoughts?
Love the plugin, thanks! Seems to be a bit out of date, however, specifically with EmailService (needs to be APIEmailService: http://help.infusionsoft.com/api-docs/emailservice)
Thanks in advance for updating!
Hello Sir/Mam,
I making an Integration of infusionsoft to create contacts for insfusionsoft users.To make this possible I want to know how I can authenticate the user & create Contacts & also please tell which service or function I use for refresh token.
Thank you
Hey,
You can create and update Custom field, however, there are no methods to update contact.
Is there any way to update contact's custom field.
Thank you
Hi, can i call placeOrder for several leadAffiliateId?
I cannot tell from the docs and the code does not appear to support CRUD operations like add contacts.
Does this also work for infusionsoft CRUD operations?
Hello again
This API is very useful, but I seem to have difficulties using the queries that infusionSoft provides in their documentation.
If I write something like:
ifs.DataService.query('LeadSource', 1000, 1, "Id => [1,2,3,4]", leadSourceFields).then(leadSources => {
console.log(leadSources);
return leadSources;
}).catch(e => { console.log(e) });
Id => [1,2,3,4]
, one of the example queries copied from IFS's documentation, just seems to cause the program to crash with this: Error: XML-RPC fault: No method matching arguments: java.lang.String
In their documentation they say the query is of type "struct" but how do I declare that type inside javascript?
This really is a low priority thing but I'd appreciate the insight
Thank you
The bug is with .done() on line 290 in lib/Queryable.js. If XML-RPC fails to parse and throws an error, when it falls into this done() it will create a uncatchable segment fault in the app and shut it down.
This is a flaw in the way .done works with promises. Unfortunately since infusionsoft often throws non xml rpc responses it can cause node crashes extremely often.
In order to resolve the issue it needs to be replaced with a .then and .catch as apposed to .done.
Your module uses old way of connection to Infusionsoft, it's deprecated and will be removed soon. Please update it with new way with using OAuth 2.0 like it described here https://developer.infusionsoft.com/docs/read/Getting_Started_With_OAuth2
/var/www/app/node_modules/infusionsoft-api/node_modules/q/q.js:126
throw e;
^
Error: XML-RPC fault: No such handler: APIEmailService.sendTemplate
at createFault (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/lib/deserializer.js:83:21)
at Deserializer.onDone (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/lib/deserializer.js:89:21)
at SAXStream.EventEmitter.emit (events.js:92:17)
at Object.SAXStream._parser.onend (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/node_modules/sax/lib/sax.js:171:8)
at emit (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/node_modules/sax/lib/sax.js:325:33)
at end (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/node_modules/sax/lib/sax.js:363:3)
at Object.SAXParser.end (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/node_modules/sax/lib/sax.js:137:24)
at SAXStream.end (/var/www/app/node_modules/infusionsoft-api/node_modules/xmlrpc/node_modules/sax/lib/sax.js:209:16)
at IncomingMessage.onend (_stream_readable.js:483:10)
at IncomingMessage.g (events.js:180:16)
I am trying to send out an email template. What does this error mean? The code I am using to run it is this.
isdk = new infusionsoft_api.DataContext(config.infusionsoft.appName, config.infusionsoft.key);
isdk.APIEmailService.sendTemplate([4407], 3409).done(function(result){ console.log(result); });
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.