Skip to content

Commit e801ec0

Browse files
Removes mention of the webhook level
- Updates files to remove mention of webhook_level's which are no longer used.
1 parent 4950cf5 commit e801ec0

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ pusher.notify(["my-favourite-interest"], data)
187187

188188
Push notification requests, once submitted to the service are executed asynchronously. To make reporting errors easier, you can supply a `webhook_url` field in the body of the request. This will be used by the service to send a webhook to the supplied URL if there are errors.
189189

190-
You may also supply a `webhook_level` field in the body, which can either be INFO or DEBUG. It defaults to INFO - where INFO only reports customer facing errors, while DEBUG reports all errors.
191-
192190
For example:
193191

194192
```python
@@ -206,8 +204,7 @@ data = {
206204
"icon": "icon"
207205
}
208206
},
209-
"webhook_url": "http://yolo.com",
210-
"webhook_level": "INFO"
207+
"webhook_url": "http://yolo.com"
211208
}
212209
```
213210

pusher/notification_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
API_PREFIX = 'server_api'
1717
API_VERSION = 'v1'
1818
GCM_TTL = 241920
19-
WEBHOOK_LEVELS = ['INFO', 'DEBUG', '']
20-
2119

2220
class NotificationClient(Client):
2321
def __init__(

pusher_tests/test_notification_client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def setUp(self):
88
self.client = NotificationClient(app_id='4', key='key', secret='secret')
99
self.success_fixture = {
1010
'webhook_url': 'http://webhook.com',
11-
'webhook_level': 'DEBUG',
1211
'apns': {
1312
'alert': {
1413
'title': 'yolo',
@@ -36,7 +35,6 @@ def test_notify_success_case(self):
3635
self.assertEqual(request.params, {
3736
'interests': ['yolo'],
3837
'webhook_url': 'http://webhook.com',
39-
'webhook_level': 'DEBUG',
4038
'apns': {
4139
'alert': {
4240
'title': 'yolo',

0 commit comments

Comments
 (0)