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()}