Skip to content

Commit 83c0963

Browse files
Add setters for URL
1 parent 7ff5bc6 commit 83c0963

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
here = path.abspath(path.dirname(__file__))
1313

14-
version = "2.2.5"
14+
version = "2.2.6"
1515

1616
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
1717
long_description = f.read()

telesign/rest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ def put(self, resource, body=None, json_fields=None, **query_params):
198198
"""
199199
return self._execute(self.session.put, 'PUT', resource, body, json_fields, **query_params)
200200

201+
def set_endpoint(self, rest_endpoint):
202+
self.api_host = rest_endpoint
203+
201204
def delete(self, resource, body=None, json_fields=None, **query_params):
202205
"""
203206
Generic TeleSign REST API DELETE handler.

0 commit comments

Comments
 (0)