Adobe-Marketing-Cloud / marketing-cloud-node-sdk

NodeJS module for connecting to the Adobe Digital Marketing APIs. Provides both the REST (default) and SOAP clients. Please note this software should be considered as 'alpha' and not used in a production environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

marketing-cloud-node-sdk

NodeJS module for connecting to the Adobe Marketing Cloud APIs. Provides both the REST (default) and SOAP clients.

Node.js installation

npm package

npm install https://github.com/Adobe-Marketing-Cloud/marketing-cloud-node-sdk/tarball/master

Implementation:

var client = require('marketing-cloud-node-sdk');

// configuration values
var config = {
	username: "myusername:My Company Name",
	secret: "mypassword"
};

// sets client configuration
client.config(config);

var args = {
	company: "My Company Name"
};

// perform a REST service call
client.rest('Company.GetEndpoint', args,
    function(err, response) {

        if(err) {
            console.log(err.stack);
            return;
        }

        console.log(response);
    }
);

// perform a SOAP service call
client.soap('Company.GetEndpoint', args,
    function(err, response) {

        if(err) {
            console.log(err.stack);
            return;
        }

        console.log(response);
    }
);

About

NodeJS module for connecting to the Adobe Digital Marketing APIs. Provides both the REST (default) and SOAP clients. Please note this software should be considered as 'alpha' and not used in a production environment


Languages

Language:JavaScript 100.0%