0.0.1 • Published 10 years ago

node-marketo-soap v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

node-marketo-soap

SOAP Module for Marketo's API

Install:

npm install node-marketo-soap

This is a simple wrapper around node-soap that is compatible with Marketo's SOAP API.

Usage

Instead of using soap.createClient() we need to use soap.createMarketoClient():

var soap = require('node-marketo-soap');
soap.createMarketoClient(url, function(err, client) {
    client.addSoapHeader(auth, 'AuthenticationHeader', 'tns', namespace);
    //Do something with the client...
    //Eg., create a lead:
    client.syncLead(leads, function(err, res) {
      console.log('Result: ', res.result);
    })
});