Snippets prepared for NodeJS.
Enter this catalog and run npm install
-
Install NodeJS
-
Init npm,
npm init -
Install
@elasticemail/elasticemail-clientnpm install @elasticemail/elasticemail-client
Edit snippet and put your api key in place of YOUR_API_KEY
Replace other data if needed eg.:
- your validated email address,
- your email address to receive example email.
- template name
- campaign name
- ...etc
Run
cd functions
node snippetFile.js