Giter Site home page Giter Site logo

infusionsoft-api's People

Contributors

andrewgbliss avatar bvalosek avatar nicholascloud avatar samwyma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

infusionsoft-api's Issues

Tests?

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?

ContactGroupAssign Table, Some Field Names Have Dots

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?

Authenticate & Refresh Token

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

Update Custom field

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

Does this support CRUD apis?

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?

example query using this API

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

.done() crashes node

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.

Error: XML-RPC fault: No such handler: APIEmailService.sendTemplate

/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); });

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.