A Node.js client library for interacting with the Marketo REST API. Version 1.0.4 targets Node >=14.17.6 and is a fork of the MadKudu/node-marketo library that adds support for lead.submitForm and debug logging for Marketo API responses. It provides methods for leads, campaigns, custom objects, and more, but lacks TypeScript types and comprehensive documentation. The package has not seen recent updates, but the underlying API is stable.
npm install node-marketo-rest-client-ngNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a Marketo client using environment variables and fetches leads by IDs.
Ensure endpoint is REST endpoint (e.g., https://xxx.mktorest.com/rest) and identity is OAuth endpoint (https://xxx.mktorest.com/identity).
Pass formId as integer: await client.lead.submitForm({ formId: 1234, input: [...] });Check updated README for constructor parameters; original library used different property names.
Ensure Marketo client is instantiated with valid credentials and await any initial auth step if needed.
Verify MARKETO_CLIENT_ID and MARKETO_CLIENT_SECRET environment variables and check token refresh logic.