pushsafer.com通知服务的全面绑定
python-pushsafer的Python项目详细描述
python-pushsafer旨在为api提供全面的python绑定 关于Pushsafer Notification Service的记录here。
由[thibauth](https://github.com/Thibauth/python-pushover)创建并由其创建的分叉
安装
您可以直接从GitHub:
git clone https://github.com/appzer/python-pushsafer.git
cd python-pushsafer
pip install .
概述
导入后,必须通过调用^{tt2}初始化模块$ 具有有效私钥的函数。因此,一个典型的 pushsafer模块如下:
frompushsaferimportinit,Clientinit("<privatekey>")Client("").send_message("Message","Hello","323","1","4","2","https://www.pushsafer.com","Open Pushsafer","0","2","60","600","1","","","")
您还可以将privatekey可选参数传递给Client到 同时初始化模块:
frompushsaferimportClientclient=Client("",privatekey="<privatekey>")client.send_message("Message","Hello","323","1","4","2","https://www.pushsafer.com","Open Pushsafer","0","1","120","1200","0","","","")
参数
客户端。发送消息(“消息”、“标题”、“设备或设备组ID”、“图标”、“声音”、“振动”、“URL”、“URL标题”、“Time2Live”、“优先级”、“重试”、“过期”、“应答”、“图像1”、“图像2”、“图像3”)
API
您可以访问完整的api文档here。
贡献者
- 凯文·西姆勒info@appzer.de>;
更改
0.4(2018-08-19)
添加新的pushsafer参数priority,retry,expire,answer
0.3(2017-11-28)
忽略验证SSL证书(信任自签名证书)
0.2(2017-02-12)
添加新参数(URL、URL标题、Time2Live、图像1-3),小错误修复
0.1(2016-09-13)
初始版本