Skip to content

Commit 1345fc9

Browse files
authored
Merge pull request #79 from pusher/correct-endpoint-domain
Correct endpoint domain
2 parents ebad140 + dce29dd commit 1345fc9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Pusher now allows sending native notifications to iOS and Android devices. Check
158158

159159
### Sending native pushes
160160

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.
162162

163163
You can send pushes by using the `notify` method, either globally or on the instance. The method takes two parameters:
164164

@@ -366,12 +366,12 @@ print webhook["events"]
366366

367367
Users can configure the library to use different backends to send calls to our API. The HTTP libraries we support are:
368368

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.
370370
* [Tornado](http://www.tornadoweb.org/en/stable/) (`pusher.tornado.TornadoBackend`).
371371
* [AsyncIO](http://asyncio.org/) (`pusher.aiohttp.AsyncIOBackend`).
372372
* [Google App Engine](https://cloud.google.com/appengine/docs/python/urlfetch/) (`pusher.gae.GAEBackend`).
373373

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.
375375

376376
### Google App Engine
377377

pusher/notification_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .http import POST, Request, request_method
33
from .util import ensure_text
44

5-
DEFAULT_HOST = "nativepushclient-cluster1.pusher.com"
5+
DEFAULT_HOST = "nativepush-cluster1.pusher.com"
66
RESTRICTED_GCM_KEYS = ['to', 'registration_ids']
77
API_PREFIX = 'server_api'
88
API_VERSION = 'v1'

pusher_tests/test_notification_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def setUp(self):
2626
def test_notify_success_case(self):
2727
request = self.client.notify.make_request(['yolo'], self.success_fixture)
2828
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')
3030
self.assertEqual(request.path, '/server_api/v1/apps/4/notifications')
3131
self.assertEqual(request.params, {
3232
'interests': ['yolo'],

0 commit comments

Comments
 (0)