telesign 2.2.6__py2.py3-none-any.whl → 2.2.7__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- telesign/rest.py +14 -4
- {telesign-2.2.6.dist-info → telesign-2.2.7.dist-info}/METADATA +1 -1
- {telesign-2.2.6.dist-info → telesign-2.2.7.dist-info}/RECORD +6 -6
- {telesign-2.2.6.dist-info → telesign-2.2.7.dist-info}/LICENSE.txt +0 -0
- {telesign-2.2.6.dist-info → telesign-2.2.7.dist-info}/WHEEL +0 -0
- {telesign-2.2.6.dist-info → telesign-2.2.7.dist-info}/top_level.txt +0 -0
telesign/rest.py
CHANGED
|
@@ -24,10 +24,6 @@ class RestClient(requests.models.RequestEncodingMixin):
|
|
|
24
24
|
|
|
25
25
|
See https://developer.telesign.com for detailed API documentation.
|
|
26
26
|
"""
|
|
27
|
-
user_agent = "TeleSignSDK/python-{sdk_version} Python/{python_version} Requests/{requests_version}".format(
|
|
28
|
-
sdk_version=telesign.__version__,
|
|
29
|
-
python_version=python_version(),
|
|
30
|
-
requests_version=requests.__version__)
|
|
31
27
|
|
|
32
28
|
class Response(object):
|
|
33
29
|
"""
|
|
@@ -51,6 +47,9 @@ class RestClient(requests.models.RequestEncodingMixin):
|
|
|
51
47
|
customer_id,
|
|
52
48
|
api_key,
|
|
53
49
|
rest_endpoint='https://rest-api.telesign.com',
|
|
50
|
+
source="python_telesign",
|
|
51
|
+
sdk_version_origin=None,
|
|
52
|
+
sdk_version_dependency=None,
|
|
54
53
|
proxies=None,
|
|
55
54
|
timeout=10,
|
|
56
55
|
auth_method=None):
|
|
@@ -77,6 +76,17 @@ class RestClient(requests.models.RequestEncodingMixin):
|
|
|
77
76
|
|
|
78
77
|
self.auth_method = auth_method
|
|
79
78
|
|
|
79
|
+
current_version_sdk = telesign.__version__ if source == "python_telesign" else sdk_version_origin
|
|
80
|
+
|
|
81
|
+
self.user_agent = "TeleSignSDK/python Python/{python_version} Requests/{requests_version} OriginatingSDK/{source} SDKVersion/{sdk_version}".format(
|
|
82
|
+
python_version=python_version(),
|
|
83
|
+
requests_version=requests.__version__,
|
|
84
|
+
source=source,
|
|
85
|
+
sdk_version=current_version_sdk)
|
|
86
|
+
|
|
87
|
+
if source != "python_telesign":
|
|
88
|
+
self.user_agent = self.user_agent + " DependencySDKVersion/{sdk_version_dependency}".format(sdk_version_dependency=sdk_version_dependency)
|
|
89
|
+
|
|
80
90
|
@staticmethod
|
|
81
91
|
def generate_telesign_headers(customer_id,
|
|
82
92
|
api_key,
|
|
@@ -3,12 +3,12 @@ telesign/appverify.py,sha256=wBeaeUxGmYcZkrbxkkXlG3-0oZr5sVvegzVpdvaoO2A,1195
|
|
|
3
3
|
telesign/intelligence.py,sha256=t-xwlgxkXw1OMupF5K4_UKWeTArOr9XPvddmqgZftPI,1452
|
|
4
4
|
telesign/messaging.py,sha256=v7l-eKUPqz7Nrwka0YNPMkC2TaoFUvQm3yp_djuTPu0,1367
|
|
5
5
|
telesign/phoneid.py,sha256=mk03NxL3wlaXpd8b-BB6q_SKfCxbtuTO19ayAHxmzz0,954
|
|
6
|
-
telesign/rest.py,sha256=
|
|
6
|
+
telesign/rest.py,sha256=9mXM89DpwuxVAlA2imHTJzdDFwdBIFk3GVPrPPvSpbI,11998
|
|
7
7
|
telesign/score.py,sha256=Kceu6IrirN9SsuT1geEWs0QHAn6H9ZNFyIDVHcBJdwg,908
|
|
8
8
|
telesign/util.py,sha256=stDxpL5ZQeGskE_OSGP04UFHs3ZP2ACaRpW1WyQGMHg,1624
|
|
9
9
|
telesign/voice.py,sha256=DJaWyQpun-T7LfNjpxpsUjupiv2ShW1jqoFQA-CE2-Y,1341
|
|
10
|
-
telesign-2.2.
|
|
11
|
-
telesign-2.2.
|
|
12
|
-
telesign-2.2.
|
|
13
|
-
telesign-2.2.
|
|
14
|
-
telesign-2.2.
|
|
10
|
+
telesign-2.2.7.dist-info/LICENSE.txt,sha256=a--xZ4PCKUL5rpct8RrUC6ODU_8ZKIU51kJPfsA4HUs,1058
|
|
11
|
+
telesign-2.2.7.dist-info/METADATA,sha256=D4e1bjdTy2lNd4b_bWZ8G6bdhjdCfwUt8DIMfy4hsVU,4532
|
|
12
|
+
telesign-2.2.7.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
13
|
+
telesign-2.2.7.dist-info/top_level.txt,sha256=6LG7Jcr1jnpVhOWaIShoTdwYJn0QCfPhfudyVJNz1qg,9
|
|
14
|
+
telesign-2.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|