我正在尝试使用自动通知系统(Iphone)https://github.com/simonwhitaker/PyAPNs。当您想要发送通知时,您可以调用“apns.gateway_server.send_notification(key, Payload)”,并且必须输入 PEM 密码短语。有没有办法通过代码输入这个短语?
类似于: call(apns.gateway_server.send_notification(key, Payload), sys.stdout.write("my phars"))
我不知道该怎么做
import apns
gate = apns.APNs('keyfile','certfile').gateway_server()
gate.send_notification(key,payload)
你运行这个的时候有问题吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)