Low-level Node.js library for accessing the Salesforce Marketing Cloud REST API (formerly ExactTarget). Version 3.2.2 supports Node >=4 and uses the 'request' module for HTTP calls. The community-supported project is maintained on GitHub. It provides simple GET, POST, PUT, PATCH, DELETE methods with optional retry on 401 responses. Alternative to the full FuelSDK for targeted REST calls. Release cadence: irregular, last release 2019-09-25. No ES modules, no TypeScript types. Primarily used in older Node projects integrating with Marketing Cloud.
npm install fuel-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the FuelRest client with client credentials and sends a POST request to the Marketing Cloud messaging API.
Migrate to Salesforce Marketing Cloud SDK v2 or use a modern HTTP client like 'axios' with manual auth.
Update Node.js to version >=4 or use an older version of the package.
Choose one pattern: either callback(err, response) or .then/.catch.
Remove trailing slash from origin/restEndpoint.
Pass options object with auth: { clientId: '...', clientSecret: '...' }.Use 'new FuelRest(options)'.
Verify the origin/restEndpoint URL. For production, use 'https://www.exacttargetapis.com' or your tenant-specific endpoint.