pypush/demo.py
2023-04-05 21:01:07 -04:00

5 lines
130 B
Python

import apns
from base64 import b64decode, b64encode
c = apns.APNSConnection()
print(f"Push Token: {b64encode(c.token).decode()}")