pypush-plus-plus/development/demo.py

18 lines
365 B
Python
Raw Normal View History

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