File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ Pusher now allows sending native notifications to iOS and Android devices. Check
158
158
159
159
### Sending native pushes
160
160
161
- The native notifications API is hosted at ` nativepushclient -cluster1.pusher.com` and only accepts https requests.
161
+ The native notifications API is hosted at ` nativepush -cluster1.pusher.com` and only accepts https requests.
162
162
163
163
You can send pushes by using the ` notify ` method, either globally or on the instance. The method takes two parameters:
164
164
@@ -366,12 +366,12 @@ print webhook["events"]
366
366
367
367
Users can configure the library to use different backends to send calls to our API. The HTTP libraries we support are:
368
368
369
- * [ Requests] ( http://docs.python-requests.org/en/latest/ ) (` pusher.requests.RequestsBackend ` ). This is used by default.
369
+ * [ Requests] ( http://docs.python-requests.org/en/latest/ ) (` pusher.requests.RequestsBackend ` ). This is used by default.
370
370
* [ Tornado] ( http://www.tornadoweb.org/en/stable/ ) (` pusher.tornado.TornadoBackend ` ).
371
371
* [ AsyncIO] ( http://asyncio.org/ ) (` pusher.aiohttp.AsyncIOBackend ` ).
372
372
* [ Google App Engine] ( https://cloud.google.com/appengine/docs/python/urlfetch/ ) (` pusher.gae.GAEBackend ` ).
373
373
374
- Upon initializing a Pusher instance, pass in any of these options to the ` backend ` keyword argument.
374
+ Upon initializing a Pusher instance, pass in any of these options to the ` backend ` keyword argument.
375
375
376
376
### Google App Engine
377
377
Original file line number Diff line number Diff line change 2
2
from .http import POST , Request , request_method
3
3
from .util import ensure_text
4
4
5
- DEFAULT_HOST = "nativepushclient -cluster1.pusher.com"
5
+ DEFAULT_HOST = "nativepush -cluster1.pusher.com"
6
6
RESTRICTED_GCM_KEYS = ['to' , 'registration_ids' ]
7
7
API_PREFIX = 'server_api'
8
8
API_VERSION = 'v1'
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def setUp(self):
26
26
def test_notify_success_case (self ):
27
27
request = self .client .notify .make_request (['yolo' ], self .success_fixture )
28
28
self .assertEqual (request .method , u'POST' )
29
- self .assertEqual (request .base_url , u'https://nativepushclient -cluster1.pusher.com:443' )
29
+ self .assertEqual (request .base_url , u'https://nativepush -cluster1.pusher.com:443' )
30
30
self .assertEqual (request .path , '/server_api/v1/apps/4/notifications' )
31
31
self .assertEqual (request .params , {
32
32
'interests' : ['yolo' ],
You can’t perform that action at this time.
0 commit comments