Commit b690c1cc authored by jinwen's avatar jinwen

Revised comments

parent e22f1d33
...@@ -45,13 +45,13 @@ def ios(alert=None, badge='+1', sound=None, content_available=False, ...@@ -45,13 +45,13 @@ def ios(alert=None, badge='+1', sound=None, content_available=False,
:keyword sound: An string sound file to play. :keyword sound: An string sound file to play.
:keyword content_available: If True, pass on the content-available command :keyword content_available: If True, pass on the content-available command
for Newsstand iOS applications. for Newsstand iOS applications.
:keyword extra: A set of key/value pairs to include in the push payload :keyword extras: A set of key/value pairs to include in the push payload
sent to the device. sent to the device.
:keyword sound_disalbe: Disable sound to implement slient push. :keyword sound_disalbe: Disable sound to implement slient push.
>>> ios(alert='Hello!', sound='cat.caf', >>> ios(alert='Hello!', sound='cat.caf',
... extra={'articleid': '12345'}) ... extras={'articleid': '12345'})
{'sound': 'cat.caf', 'extra': {'articleid': '12345'}, 'alert': 'Hello!'} {'sound': 'cat.caf', 'extras': {'articleid': '12345'}, 'alert': 'Hello!'}
""" """
payload = {} payload = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment