npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@boozt/sfmc-fuelsdk-node

v1.2.0

Published

Node SDK for performing REST, SOAP, Auth, and js object API calls with Salesforce Marketing Cloud Fuel.

Downloads

13

Readme

Important Notice

This is the changed copy of original FuelSDK-Node (salesforce-marketingcloud/FuelSDK-Node) including an important change. Version of the original: 2.4.0

This change enables setting the props for the subscriber object as an object or array. If it is set as an array, you can send multiple subscribers in one request.

The module will be deleted as soon as the original repository applies the pull-request (https://github.com/salesforce-marketingcloud/FuelSDK-Node-SOAP/pull/136) or provides a way to send multiple subscribers in one request.

Changelog

The following code:

this._cacheDir = path.join(__dirname, '../../.cache');

has been replaced with:

this._cacheDir = path.join('/tmp/.sfmc-cache');

in CacheService.js

Release 1.1.1

The patch, post and delete methods of the DataExtensionRow now support the props as an array.

client.dataExtensionRow({
    Name: String,
    props: Array<Object>
}), 'patch')

Release 1.2.0

The bug with DataExtensionRow delete method has been fixed.

FuelSDK-Node

Salesforce Marketing Cloud Fuel SDK for Node

Overview

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.

Latest Version 2.4.0

  • Added support for Public/Web App OAuth2 Authentication. For more details, Check the How to use Section of Readme.

Version 2.3.1

Bumped js-yaml from 3.12.0 to 3.13.1.

Version 2.3.0

Version 2.2.0

How to use

Step 1. Install the package
npm install --save sfmc-fuelsdk-node
Step 2. Require the client
const ET_Client = require('sfmc-fuelsdk-node');
Step 3. Instantiate the SDK
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>>}
}); 
Step 4. Consume the objects
const props = {
  name: 'Some test campaign name',
  description: 'Campaign description'
};
client.campaign({props}).post((err, response) => {
  // code
});

Available objects in this version:

  • Campaign
  • Campaign Asset
  • Content Area
  • Data Extension
  • Data Extension Column
  • Data Extension Row
  • Email
  • Folder
  • List
  • List Subscriber
  • Subscriber
  • Triggered Send
  • Bounce Event
  • Click Event
  • Open Event
  • Sent Event
  • Unsub Event

Usage:

See https://github.com/salesforcefuel/node-sdk-backbone-app for examples.