Skip to content

Commit 3829b1e

Browse files
committed
Tidying README
1 parent 6140b67 commit 3829b1e

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

README.markdown

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,11 @@ A Python library for interacting with the Apple Push Notification service
77

88
from pyapns import APNs, Payload
99

10-
apns = APNs(
11-
use_sandbox=True,
12-
cert_file='cert-file.pem',
13-
key_file='key-file.pem'
14-
)
15-
16-
# Send some notifications
17-
token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c'
18-
payload = Payload(
19-
alert = "Hello World!",
20-
sound = "default",
21-
badge = 4
22-
)
23-
10+
apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem')
11+
12+
# Send a notification
13+
token_hex = 'b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b87'
14+
payload = Payload(alert="Hello World!", sound="default", badge=1)
2415
apns.gateway_server.send_notification(token_hex, payload)
2516

2617
# Get feedback messages
@@ -39,7 +30,7 @@ class. Example:
3930

4031
## Credits
4132

42-
Written and maintained by Simon Whitaker at [Goo Software Ltd](http://www.goosoftware.co.uk/).
33+
Written and maintained by Simon Whitaker at [Goo Software Ltd][goo].
4334

4435
[a1]:http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html#//apple_ref/doc/uid/TP40008194-CH1-SW1
45-
36+
[goo]:http://www.goosoftware.co.uk/

0 commit comments

Comments
 (0)