New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sfmc

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sfmc

Salesforce Marketing Cloud JS API.

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
2
Created
Source

Salesforce Marketing Cloud NodeJS API

This is a simple NPM package for Salesforce Marketing Cloud. This project is currently in development mode. Feel free to contribute.

Keep in mind that this package is still under construction. If you want add extra feature or have feature requests, you can contact us at contact@deselect.io.

See the UPDATES.md file for updates & versioning.

Setup

Run npm install sfmc --save or simply yarn add sfmc

Examples snippets

See ./samples.

Tests

Tests are written using Mocha and Chai. Note that by testing you are interacting with the SFMC API and hence you will be creating data in the environment you chose to connect to!

Run npm test tests to run tests.

Note: To run most tests you will need to do some config:

  • Add your SFMC clientID and clientSecret in ./config as such:
// In ./config/index.js
const config = {
  clientId: '<Your clientId>',
  clientSecret: '<Your clientSecret>',
  accessToken: '', // see below
  server: '<Your SFMC Server Instance>', // e.g. s10
};
  • Run node utils to get your accessToken. Add it to ./config/index.js as well.

For more information on how to create an app in SFMC and retrieve your clientId and clientSecret, please refer to the Salesforce documentation.

Roadmap

  • Expand methods for Data Extensions
  • Expand methods for Query Activities
  • Methods for folders
  • Methods for user information
  • Methods for Automations
  • More test coverage

Author

Maintained by: DESelect.io (contact@deselect.io)
Initial contributor: Timothy Verhaeghe

FAQs

Package last updated on 23 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts