node-marketo-soap

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-marketo-soap

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • uris77