pypush-plus-plus/development/demo.py

18 lines
367 B
Python
Raw Normal View History

2023-04-11 16:17:53 +00:00
import apns
import ids
2023-04-06 01:01:07 +00:00
2023-04-06 01:04:41 +00:00
conn1 = apns.APNSConnection()
conn1.connect()
2023-04-11 16:23:04 +00:00
# Uncomment these for greater parity with apsd
# conn1.keep_alive()
# conn1.set_state(0x01)
# conn1.filter([])
# conn1.connect(False)
2023-04-08 02:32:00 +00:00
conn1.filter(["com.apple.madrid"])
2023-04-06 01:04:41 +00:00
2023-05-03 00:53:18 +00:00
# print(ids.lookup(conn1, ["mailto:jjtech@jjtech.dev"]))
2023-05-09 19:36:33 +00:00
#print(ids.register(conn1, "user_test2@icloud.com", "wowSecure1"))