mandrill入站的python包装器
python-mandrill-inbound的Python项目详细描述
#mandrill入站python包装器[![构建状态](https://travis-ci.org/jpadilla/mandrill-inbound-python.png?branch=master)(http s://travis ci.org/jpadilla/mandrill inbound python)
这是一个简单的api包装程序,用于[mandrill的inbound email webhook](http://help.mandrill.com/entries/22092308什么是inbound email webhook的格式-
受我为[邮戳]制作的另一个python包装程序库的启发入站(https://github.com/jpadilla/postmark inbound python/postmark inbound.python)。
````
git clone git://github.com/jpadillla/mandrill inbound-python.git
```
//
pip安装python mandrill inbound
``
使用简单的安装环境:使用简单的安装环境:使用简单的安装:安装:安装:pip
```
易于安装入站
````
用法
````python
U数据=json.loads(打开('./tests/fixtures/valid_http_post.json').read())
inbound=mandrillinbund(source=json_data)
inbound.html_body
打印inbound.text_body
打印inbound.send_date
打印inbound.ts
垃圾邮件和欺骗检测
打印inbound.spf
打印inbound.dkim
打印inbound.spm评分
标题
打印inbound.headers默认为获取所有标题
打印inbound.headers['MIME-Version']
入站。邮件头['received-spf']
a.name
打印a.content_type
打印a.read()
打印a.download('./tests/',['image/png'])
请在github上创建一个问题!
贡献
----
*Fork
*编写测试
*编写代码
*拉取请求
>感谢您的帮助。
License
----
MIT License
这是一个简单的api包装程序,用于[mandrill的inbound email webhook](http://help.mandrill.com/entries/22092308什么是inbound email webhook的格式-
受我为[邮戳]制作的另一个python包装程序库的启发入站(https://github.com/jpadilla/postmark inbound python/postmark inbound.python)。
````
git clone git://github.com/jpadillla/mandrill inbound-python.git
```
//
pip安装python mandrill inbound
``
使用简单的安装环境:使用简单的安装环境:使用简单的安装:安装:安装:pip
```
易于安装入站
````
用法
````python
U数据=json.loads(打开('./tests/fixtures/valid_http_post.json').read())
inbound=mandrillinbund(source=json_data)
inbound.html_body
打印inbound.text_body
打印inbound.send_date
打印inbound.ts
垃圾邮件和欺骗检测
打印inbound.spf
打印inbound.dkim
打印inbound.spm评分
标题
打印inbound.headers默认为获取所有标题
打印inbound.headers['MIME-Version']
入站。邮件头['received-spf']
a.name
打印a.content_type
打印a.read()
打印a.download('./tests/',['image/png'])
请在github上创建一个问题!
贡献
----
*Fork
*编写测试
*编写代码
*拉取请求
>感谢您的帮助。
License
----
MIT License