python SDK for stampHQ email send APIs.
Project description
stampHQ-python SDK
This SDK lets you interact with stampHQ APIs with python. The SDK currently supports mail sending.
Install
pip install stamphq
Usage
You need a stamphq account. Signup for an account here to obtain an API key.
from stamphq.client import StampHQClient
# create the client
client = StampHQClient(api_key="<key obtained from dashboard>")
# send email with text and html parts
message_id = client.send_email(
sender="catelyn@winterfell.com",
to=["ned@winterfell.com"],
subject="Regarding Jon Snow!",
text_content="I know about Jon Snow Ned.",
html_content="<html><body><p>I know about Jon Snow Ned. <i>And, be careful with Lannisters.</i></p></body></html>",
)
print(message_id) # prints the Message-ID for the email.
TODO
- add template support
Support
please write to sdk@stamphq.app
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stamphq-0.0.1.tar.gz
(7.3 kB
view hashes)