Skip to main content

Enveloop API SDK

Project description

Enveloop

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

Installation

Install with pip:

python3 -m pip install enveloop-py

Usage

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')

Contributing

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enveloop_py-0.2.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

enveloop_py-0.2.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page