Forwards-compatible Flask extension to interact with the sendwithus API
Project description
About
Forwards-compatible Flask extension to interact with the sendwithus API.
Installation
pip install Flask-Sendwithus
Documentation
Uses the standard extension pattern. Example:
>>> from flask import Flask >>> from flask_sendwithus import Sendwithus >>> app = Flask(__name__) >>> app.config['SENDWITHUS_API_KEY'] = 'YOUR-API-KEY' >>> sendwithus = Sendwithus() >>> sendwithus.init_app(app) >>> r = sendwithus.send( email_id='YOUR-EMAIL-ID', recipient={'address': 'us@sendwithus.com'}) >>> print(r.status_code) 200 )
See the official python client’s documentation for further info on what methods are available. All methods found on the sendwithus.api instance is proxied on the Flask-Sendwithus’s instance.
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
Flask-Sendwithus-1.0.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for Flask_Sendwithus-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdf6c8a59b5f7de246cf91c521a5b42b80735642136921cc89f417ceea1cb192 |
|
MD5 | 0c851c8c4e33c505a633f051c592d11f |
|
BLAKE2b-256 | 44b4312616b8ffde2ff64022f495a6774c47aed68e7b63321e45610742ef1f96 |