23
23
X_YOTI_SDK_VERSION ,
24
24
JSON_CONTENT_TYPE ,
25
25
)
26
- from . import YOTI_API_VERIFY_SSL
27
26
28
27
NO_KEY_FILE_SPECIFIED_ERROR = (
29
28
"Please specify the correct private key file "
@@ -104,7 +103,7 @@ def make_request(self, http_method, endpoint, body):
104
103
105
104
url = yoti_python_sdk .YOTI_API_ENDPOINT + endpoint
106
105
headers = self .__get_request_headers (endpoint , http_method , body )
107
- response = requests .request (http_method , url , headers = headers , data = body , verify = YOTI_API_VERIFY_SSL )
106
+ response = requests .request (http_method , url , headers = headers , data = body , verify = yoti_python_sdk . YOTI_API_VERIFY_SSL )
108
107
return response
109
108
110
109
@property
@@ -136,7 +135,7 @@ def __make_activity_details_request(
136
135
path = self .__endpoint .get_activity_details_request_path (decrypted_token )
137
136
url = yoti_python_sdk .YOTI_API_ENDPOINT + path
138
137
headers = self .__get_request_headers (path , http_method , content )
139
- response = requests .get (url = url , headers = headers , verify = YOTI_API_VERIFY_SSL )
138
+ response = requests .get (url = url , headers = headers , verify = yoti_python_sdk . YOTI_API_VERIFY_SSL )
140
139
141
140
self .http_error_handler (
142
141
response , {"default" : "Unsuccessful Yoti API call: {1}" }
@@ -151,7 +150,7 @@ def __make_aml_check_request(self, http_method, aml_profile):
151
150
url = yoti_python_sdk .YOTI_API_ENDPOINT + path
152
151
headers = self .__get_request_headers (path , http_method , aml_profile_bytes )
153
152
154
- response = requests .post (url = url , headers = headers , data = aml_profile_bytes , verify = YOTI_API_VERIFY_SSL )
153
+ response = requests .post (url = url , headers = headers , data = aml_profile_bytes , verify = yoti_python_sdk . YOTI_API_VERIFY_SSL )
155
154
156
155
self .http_error_handler (
157
156
response , {"default" : "Unsuccessful Yoti API call: {1}" }
0 commit comments