From a03e8d036573e5a1ac3bd7eedecf69264f434d59 Mon Sep 17 00:00:00 2001 From: David Panesso Date: Thu, 1 Mar 2018 15:48:42 +0100 Subject: [PATCH] Update clickatell API URL --- clickatell/__init__.py | 2 +- test/test_transport.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clickatell/__init__.py b/clickatell/__init__.py index b8492a9..2356f79 100755 --- a/clickatell/__init__.py +++ b/clickatell/__init__.py @@ -10,7 +10,7 @@ class Transport: the supported API methods """ - endpoint = "api.clickatell.com" + endpoint = "platform.clickatell.com" status = { "001": "The message ID is incorrect or reporting is delayed.", "002": "The message could not be delivered and has been queued for attempted redelivery.", diff --git a/test/test_transport.py b/test/test_transport.py index bf2b3b2..e61ae81 100755 --- a/test/test_transport.py +++ b/test/test_transport.py @@ -58,7 +58,7 @@ def test_request(self, mock_request): transport = Transport() transport.request('act') mock_request.assert_called_with( - 'http://api.clickatell.com/act', + 'http://platform.clickatell.com/act', params={}, data='{}', headers={'User-Agent': 'ClickatellPython/0.1.2 Python/' + platform.python_version()}