Salesforce Marketing Cloud Fuel SDK for Node
The Fuel SDK for Node provides easy access to Salesforce Marketing Cloud's Fuel API Family services, including a collection of REST APIs and a SOAP API. These APIs provide access to Salesforce Marketing Cloud functionality via common collection types.
- Added support for Public/Web App OAuth2 Authentication. For more details, Check the How to use Section of Readme.
Bumped js-yaml from 3.12.0 to 3.13.1.
- Added support for OAuth2 Authentication - More Details
- Added support for your tenant's endpoints - More Details
npm install --save sfmc-fuelsdk-node
const ET_Client = require('sfmc-fuelsdk-node');
const client = new ET_Client(clientId, clientSecret, stack);
or
const client = new ET_Client(clientId, clientSecret, stack, {origin, authOrigin, soapOrigin}); // stack is ignored
or (For OAuth2 - Origin/AuthOrigin/SoapOrigin should be your Tenant Specific Endpoints. AuthOrigin is mandatory)
const client = new ET_Client(clientId, clientSecret, stack, {origin, authOrigin, soapOrigin,
authOptions = { authVersion = 2, accountId = <<TARGET_BUSINESS_UNIT>>, scope = <<DATA_ACCESS_PERMISSIONS>>, applicationType = <<public||web||server>>, redirectURI = <<REDIRECT_URL_FOR_PUBLIC/WEB_APP, authorizationCode = <<AUTH_CODE_FOR_PUBLIC/WEB_APP>>}
});
const props = {
name: 'Some test campaign name',
description: 'Campaign description'
};
client.campaign({props}).post((err, response) => {
// code
});
- Campaign
- Campaign Asset
- Content Area
- Data Extension
- Data Extension Column
- Data Extension Row
- Folder
- List
- List Subscriber
- Subscriber
- Triggered Send
- Bounce Event
- Click Event
- Open Event
- Sent Event
- Unsub Event
See https://github.com/salesforcefuel/node-sdk-backbone-app for examples.