https://github.com/jacobsvante/flask-sendwithus
Forwards-compatible Flask extension to interact with the sendwithus API.
https://github.com/jacobsvante/flask-sendwithus
Last synced: 6 months ago
JSON representation
Forwards-compatible Flask extension to interact with the sendwithus API.
- Host: GitHub
- URL: https://github.com/jacobsvante/flask-sendwithus
- Owner: jacobsvante
- License: other
- Created: 2015-10-01T09:38:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-01T18:08:20.000Z (over 9 years ago)
- Last Synced: 2025-03-16T01:35:48.048Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask-Sendwithus
[](https://travis-ci.org/jmagnusson/flask-sendwithus)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](https://pypi.python.org/pypi/Flask-Sendwithus/)
[](http://codecov.io/github/jmagnusson/flask-sendwithus?branch=master)
## About
Forwards-compatible Flask extension to interact with the [sendwithus](https://www.sendwithus.com/) API.
## Installation
pip install Flask-Sendwithus
## Documentation
Uses the standard extension pattern. Example:
```python
>>> 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](https://github.com/sendwithus/sendwithus_python) for further info on what methods are available. All methods found on the `sendwithus.api` instance is proxied on the Flask-Sendwithus's instance.