Created
July 24, 2012 17:08
-
-
Save ikeikeikeike/3171238 to your computer and use it in GitHub Desktop.
pyapns sample code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyapns import configure, provision, notify | |
configure({'HOST': 'http://localhost:7077/'}) | |
provision('myapp', open('cert.pem').read(), 'sandbox') | |
notify('myapp', 'hexlified_token_str', {'aps':{'alert': 'Hello!'}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment