File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ Pusher Push Notifications Python server SDK
4
4
Installation
5
5
------------
6
6
The Pusher Notifications Python server SDK is available on PyPi
7
- `here <http ://www .python.org/ >`_.
7
+ `here <https ://pypi .python.org/pypi/pusher_push_notifications / >`_.
8
8
9
9
You can install this SDK by using
10
- `pip <https://pip.pypa.io/en/stable/installing/ `_:
10
+ `pip <https://pip.pypa.io/en/stable/installing/ > `_:
11
11
12
12
.. code :: bash
13
13
@@ -24,7 +24,7 @@ Use your instance id and secret (you can get these from the
24
24
25
25
.. code :: python
26
26
27
- import PushNotifications from pusher_push_notifications
27
+ from pusher_push_notifications import PushNotifications
28
28
29
29
pn_client = PushNotifications(
30
30
instance_id = ' YOUR_INSTANCE_ID_HERE' ,
@@ -35,6 +35,7 @@ Publishing a Notification
35
35
~~~~~~~~~~~~~~~~~~~~~~~~~
36
36
37
37
Once you have created your PushNotifications instance you can publish a push notification to your registered & subscribed devices:
38
+
38
39
.. code :: python
39
40
40
41
response = pn_client.publish({' interests' : [' hello' ], ' apns' : {' aps' : {' alert' : ' Hello!' }}})
You can’t perform that action at this time.
0 commit comments