File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
pusher_push_notifications Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
Pusher Push Notifications Python server SDK
2
2
===========================================
3
- Full documentation for this SDK can be found `here <https://docs.pusher.com/push-notifications/reference/server-sdk-python >`_
3
+ Full documentation for this SDK can be found `here <https://docs.pusher.com/push-notifications/reference/server-sdk-python >`__
4
4
5
5
Installation
6
6
------------
7
7
The Pusher Notifications Python server SDK is available on PyPi
8
- `here <https://pypi.python.org/pypi/pusher_push_notifications/ >`_ .
8
+ `here <https://pypi.python.org/pypi/pusher_push_notifications/ >`__ .
9
9
10
10
You can install this SDK by using
11
- `pip <https://pip.pypa.io/en/stable/installing/ >`_ :
11
+ `pip <https://pip.pypa.io/en/stable/installing/ >`__ :
12
12
13
- .. code :: bash
13
+ .. code ::
14
14
15
15
$ pip install pusher_push_notifications
16
16
21
21
Configuring the SDK for Your Instance
22
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23
23
Use your instance id and secret (you can get these from the
24
- `dashboard <https://dash.pusher.com >`_ ) to create a PushNotifications instance:
24
+ `dashboard <https://dash.pusher.com >`__ ) to create a PushNotifications instance:
25
25
26
- .. code :: python
26
+ .. code ::
27
27
28
28
from pusher_push_notifications import PushNotifications
29
29
@@ -37,7 +37,7 @@ Publishing a Notification
37
37
38
38
Once you have created your PushNotifications instance you can publish a push notification to your registered & subscribed devices:
39
39
40
- .. code :: python
40
+ .. code ::
41
41
42
42
response = pn_client.publish(interests=['hello'], publish_body={'apns': {'aps': {'alert': 'Hello!'}}})
43
43
Original file line number Diff line number Diff line change 1
1
nose
2
2
pylint
3
3
requests-mock
4
+ collective.checkdocs
Original file line number Diff line number Diff line change 6
6
import requests
7
7
import six
8
8
9
- SDK_VERSION = '0.9.0 '
9
+ SDK_VERSION = '0.9.1 '
10
10
INTEREST_MAX_LENGTH = 164
11
11
INTEREST_REGEX = re .compile ('^(_|=|@|,|\\ .|:|[A-Z]|[a-z]|[0-9])*$' )
12
12
Original file line number Diff line number Diff line change 2
2
from codecs import open
3
3
from os import path
4
4
5
- __version__ = '0.9.0 '
5
+ __version__ = '0.9.1 '
6
6
7
7
here = path .abspath (path .dirname (__file__ ))
8
8
You can’t perform that action at this time.
0 commit comments