pushover.net的简单python模块
coinshot的Python项目详细描述
一个简单的python模块,用于Pushover.net
示例
有关完整示例,请参见example.py:
from coinshot import Coinshot, CoinshotException coinshot_object = Coinshot(application_key[, user_key]) coinshot_object.push(message[, title, user_key, device, url, url_title, priority, timestamp])
拍摄
如果你只需要一个应用程序来发送pushover通知(不是 一个以编程方式执行它的库,请看bin/shoot。
使用量
Usage: shoot [options] message Options: -h, --help show this help message and exit -a APP_KEY, --application-key=APP_KEY Application key provided by pushover.net -u USER_KEY, --user-key=USER_KEY User key provided by pushover.net -t TITLE, --title=TITLE Notification Title
注释
- user_key在对象初始化或调用时都是必需的 推动。如果为两者都提供了user_key,则传递给push的一个 先例。
- url_title可以不带url传递,但将被忽略