A TypeScript client for Oracle Eloqua's REST API. Currently at v1.0.18, maintained actively with regular releases. Provides typed methods for contacts, accounts, emails, campaigns, and other Eloqua objects. Key differentiators include comprehensive TypeScript support, promise-based interface, and built-in retry/rate-limiting handling. Supports both CommonJS and ESM imports.
npm install eloqua-rest-apiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a client, authenticate, and search for contacts using the Eloqua API.
Always keep credentials in environment variables or a secure vault.
Use client.contacts.create, .update, .delete instead of client.bulk.contacts.*
Access response.meta.totalResults instead of response.totalResults.
Consider implementing your own queueing for high-volume calls.
Upgrade Node.js to version 12 or later.
Check network connectivity and ensure api.eloqua.com resolves correctly.
Wrap calls in try/catch and check network issues or API availability.
Verify company name, username, and password. Ensure API user has appropriate permissions.
Update to latest version (npm install eloqua-rest-api@latest) and check documentation for current methods.