PyAPN:用于与Apple Push Notification Service(APN)进行交互的Python库

时间:2024-03-16 00:07:54
【文件属性】:

文件名称:PyAPN:用于与Apple Push Notification Service(APN)进行交互的Python库

文件大小:14KB

文件格式:ZIP

更新时间:2024-03-16 00:07:54

Python

PyAPNs 用于与Apple Push Notification Service(APN)交互的Python库 安装 从GitHub下载源代码或使用easy_install: $ easy_install apns 样品用法 import time from apns import APNs , Frame , Payload apns = APNs ( use_sandbox = True , cert_file = 'cert.pem' , key_file = 'key.pem' ) # Send a notification token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87' payload = Payload ( alert = "Hello World!" , sound = "de


【文件预览】:
PyAPNs-master
----.travis.yml(71B)
----MANIFEST(52B)
----LICENSE(1KB)
----README.markdown(6KB)
----setup.py(413B)
----.gitignore(46B)
----apns-send(1KB)
----tests.py(8KB)
----apns.py(24KB)

网友评论