infusionsoft-auth-headers

0.0.4 • Public • Published

infusionsoft-auth-headers

InfusionSoft node.js XML-RPC SDK (updated to support Legacy Key Sunsetting).

Done as a one off upgrade: Not actively maintained or supported.

Other quality of life improvements:

  1. Un-maintained xmlrpc has been bundled and upgraded to use xmlbuilder2
  2. Additional XML-RPC methods: linkContacts, listLinkedContacts, unlinkContacts

Installation

npm install infusionsoft-auth-headers 

Usage

var iSDK = require('infusionsoft-auth-headers');
var client = new iSDK('app_name', 'service_account_key');

Implemented methods

see help.infusionsoft.com for more information

APIEmailService.getEmailTemplate: client.getEmailTemplate(templateId, callback)

APIEmailService.getOptStatus: client.optStatus(email, callback)

APIEmailService.optIn: client.optIn(email, reason, callback)

APIEmailService.optOut: client.optOut(email, reason, callback)

APIEmailService.sendEmail: client.sendEmail(contactList, fromAddr, toAddr, ccAddr, bccAddr, contentType, subject, html, text, templateId, callback)

ContactService.add: client.addCon(contactData, callback)

ContactService.addToCampaign: client.campAssign(contactId, campaignId, callback)

ContactService.addToGroup: client.grpAssign(contactId, groupId, callback)

ContactService.addWithDupCheck: client.addWithDupCheck(data, dupCheckType, callback)

ContactService.findByEmail: client.findByEmail(email, fMap, callback)

ContactService.load: client.findCon(contactId, fieldList, callback)

ContactService.merge: client.mergeCon(contactId, duplicateId, callback)

ContactService.removeFromGroup: client.grpRemove(contactId, groupId, callback)

ContactService.runActionSequence: client.runAS(contactId, seqId, callback)

ContactService.update: client.updateCon(contactId, contactData, callback)

ContactService.linkContacts: client.linkContacts(contactId1, contactId2, linkId, callback)

ContactService.listLinkedContacts: client.listLinkedContacts(contactId, callback)

ContactService.unlinkContacts: client.unlinkContacts(contactId1, contactId2, linkId, callback)

DataService.add: client.dsAdd(tableName, data, callback)

DataService.count: client.dsCount(tableName, query, callback)

DataService.delete: client.dsDelete(tableName, id, callback)

DataService.echo: client.appEcho(text, callback)

DataService.findByField: client.dsFind(tableName, limit, page, field, value, fieldMap, callback)

DataService.getAppSetting: client.dsGetSetting(module, setting, callback)

DataService.load: client.dsLoad(tableName, id, fieldMap, callback)

DataService.update: client.dsUpdate(tableName, id, data, callback)

DataService.query: client.dsQuery(tableName, limit, page, query, fieldMap, callback)

DataService.query: client.dsQuery(tableName, limit, page, query, fieldMap, orderBy, ascending, callback)

FunnelService.achieveGoal: client.fsGoal(integration, callName, contactId, callback)

InvoiceService.addManualPayment: client.addManualPayment(invoiceId, amount, paymentDate, paymentType, paymentDescription, bypassCommissions, callback)

InvoiceService.addOrderItem: client.addOrderItem(invoiceId, productId, type, price, quantity, description, notes, callback)

InvoiceService.calculateAmountOwed: client.calculateAmountOwed(invoiceId, callback)

InvoiceService.createBlankOrder: client.createBlankOrder(contactId, description, date, leadAffiliateId, saleAffiliateId, callback)

InvoiceService.createInvoiceForRecurring: client.createInvoiceForRecurring(recurringOrderId, callback)

InvoiceService.locateExistingCard: client.locateCard(contactId, lastFour, callback)

InvoiceService.validateCreditCard: client.validateCard(card, callback)

OrderService.placeOrder: client.placeOrder(contactId, creditCardId, payPlanId, productIds, subscriptionIds, processSpecials, promocodes, callback)

Readme

Keywords

none

Package Sidebar

Install

npm i infusionsoft-auth-headers

Weekly Downloads

9

Version

0.0.4

License

none

Unpacked Size

43.8 kB

Total Files

11

Last publish

Collaborators

  • jaustin-ew