enveloop-py is a python wrapper for the Enveloop API. It allows easy use of the API to send messages.
Install with pip:
python3 -m pip install enveloop-py
Setup the client connection:
import os
from enveloop_py import api
enveloop = api.connect(os.environ['ENVELOOP_API_TOKEN'])
Send a message:
enveloop.send_message(
template='welcome-email',
to='user@email.com',
from_address='welcome@myapp.com',
subject='Welcome to MyApp',
template_variables={
"first_name": 'John',
}
)
Get information about a template (variables and body html):
enveloop.template_info(template='welcome-email')
Bug reports and pull requests are welcome on GitHub at https://github.com/enveloophq/enveloop-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Enveloop project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.