Skip to content

Commit 11abb6e

Browse files
committed
Merge branch 'master' of github.com:mozilla-services/pywebpush into bug/03
2 parents 2056b81 + 2bdfaaa commit 11abb6e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ JSON, etc), but be sure that your receiving application is able to
3737
parse and understand it. (e.g. `data = "Mary had a little lamb."`)
3838

3939
gcm_key is the API key obtained from the Google Developer Console.
40-
It is only needed if endpoint is https://android.googleapis.com/gcm/send
40+
It is only needed if endpoint is
41+
https://android.googleapis.com/gcm/send
4142

4243
`headers` is a `dict`ionary of additional HTTP header values (e.g.
4344
[VAPID](https://github.com/mozilla-services/vapid/tree/master/python)

pywebpush/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def send(self, data, headers={}, ttl=0, gcm_key=None, reg_id=None):
156156
"""Encode and send the data to the Push Service.
157157
158158
:param data: A serialized block of data (see encode() ).
159+
:param gcm_key: API key obtained from the Google Developer Console.
160+
Needed if endpoint is https://android.googleapis.com/gcm/send
161+
:param reg_id: registration id of the recipient. If not provided,
162+
it will be extracted from the endpoint.
159163
:param headers: A dictionary containing any additional HTTP headers.
160164
:param ttl: The Time To Live in seconds for this message if the
161165
recipient is not online. (Defaults to "0", which discards the

0 commit comments

Comments
 (0)