UNPKG

infusionsoft-javascript-api

Version:
58 lines (45 loc) 2.68 kB
module.exports = IAPIEmailService = require('typedef') // THIS CODE WAS GENERATED BY AN AUTOMATED TOOL. Editing it is not recommended. // For more information, see http://github.com/bvalosek/grunt-infusionsoft // Generated on Wed Jan 08 2014 12:43:55 GMT-0600 (CST) // APIEmailService allows you to email your contacts as well as attaching emails // sent elsewhere (this lets you send email from multiple services and still see // all communications inside of Infusionsoft). .interface('IAPIEmailService') .define({ // Create a new email template that can be used for future emails __xmlrpc__addEmailTemplate: function(pieceTitle, categories, fromAddress, toAddress, ccAddress, bccAddress, subject, textBody, htmlBody, contentType, mergeContext) {}, // This will create an item in the email history for a contact. This does not // actually send the email, it only places an item into the email history. // Using the API to instruct Infusionsoft to send an email will handle this // automatically. __xmlrpc__attachEmail: function(contactId, fromName, fromAddress, toAddress, ccAddresses, bccAddresses, contentType, subject, htmlBody, textBody, header, receivedDate, sentDate, emailSentType) {}, // This retrieves all possible merge fields for the context provided __xmlrpc__getAvailableMergeFields: function(mergeContext) {}, // Retrieves the details for a particular email template __xmlrpc__getEmailTemplate: function(templateId) {}, //   __xmlrpc__getOptStatus: function(email) {}, // This method opts-in an email address. This method only works the first time // an email address opts-in __xmlrpc__optIn: function(email, optInReason) {}, // Opts-out an email address. Note that once an address is opt-out, the API // cannot opt it back in __xmlrpc__optOut: function(email, optOutreason) {}, // This will send an email to a list of contacts, as well as record the email // in the contacts' email history __xmlrpc__sendEmail: function(contactList, fromAddress, toAddress, ccAddresses, bccAddresses, contentType, subject, htmlBody, textBody, _templateId) {}, // This will send an email to a list of contacts, as well as record the email // in the contacts' email history __xmlrpc__sendTemplate: function(contactList, templateId) {}, // This method is used to update an already existing email template __xmlrpc__updateEmailTemplate: function(templateId, pieceTitle, category, fromAddress, toAddress, ccAddress, bccAddresses, subject, textBody, htmlBody, contentType, mergeContext) {} });