0.2.2 • Published 1 month ago

enveloop v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Enveloop

enveloop-js is a node wrapper for the Enveloop API. It allows easy use of the API to send messages.

Installation

Add via Yarn:

yarn add 'enveloop'

Add via NPM:

npm install --save 'enveloop'

Usage

Setup the client connection:

const { Enveloop } = require('enveloop')
const enveloop = new Enveloop({ apiKey: process.env.ENVELOOP_API_TOKEN })

Send a message:

enveloop.sendMessage({
  template: 'welcome-email',
  to: 'user@email.com',
  from: 'welcome@myapp.com',
  subject: 'Welcome to MyApp',
  templateVariables: {
    first_name: 'John',
  }
)
.then(res => console.log(res))
.catch(err => console.log(err))

Get information about a template (variables and body html):

enveloop.templateInfo({ template: 'welcome-email' })
.then(res => console.log(res))
.catch(err => console.log(err))

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/enveloophq/enveloop-js. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Enveloop project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

0.2.2

1 month ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago