Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 619 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 619 Bytes

JS Snippets

Snippets prepared for NodeJS.

Prepare test enviroment in this repo

Enter this catalog and run npm install

Prepare test environment outside this repo

  • Install NodeJS

  • Init npm, npm init

  • Install @elasticemail/elasticemail-client

    npm install @elasticemail/elasticemail-client

Prepare a snippet

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

Running a snippet

Run

cd functions

node snippetFile.js