infusionsoft
Advanced tools
Comparing version 0.2.0 to 0.2.1
17
index.js
@@ -156,1 +156,18 @@ var xmlrpc = require('xmlrpc'); | ||
}; | ||
iSDK.prototype.getEmailTemplate = function (id, callback) { | ||
var ca = [this.apiKey, id]; | ||
this.methodCaller('APIEmailService.getEmailTemplate', ca, callback); | ||
}; | ||
iSDK.prototype.validateCard = function (card, callback) { | ||
var t = typeof(card); | ||
if (!card || (t !== 'number' && t !== 'object')) callback(new Error('Expect first argument to be a number or an object')); | ||
var ca = [this.apiKey, card]; | ||
this.methodCaller('InvoiceService.validateCreditCard', ca, callback); | ||
}; | ||
iSDK.prototype.locateCard = function (contactId, lastFour, callback) { | ||
var ca = [this.apiKey, contactId, lastFour]; | ||
this.methodCaller('InvoiceService.locateExistingCard', ca, callback); | ||
}; |
{ | ||
"name": "infusionsoft", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "InfusionSoft node.js SDK", | ||
@@ -5,0 +5,0 @@ "contributors": [{ "name": "Patrick Lodder", "email": "plodder@intellibiz.org" }], |
7132
136