Skip to content

Commit ed6d7e3

Browse files
author
MousumiMohanty
committed
updated the comments
1 parent 0a67a22 commit ed6d7e3

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

RELEASE

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
2.3.0
22
- Created OmniVerify class for adding retrieve verification process functionality
33

4-
- Refactor of Verification Process Creation: The createVerificationProcess method was moved from the 
5-
VerifyClient class to the new OmniVerify class to improve API clarity by separating omnichannel
6-
verification responsibilities, so users should now use OmniVerify.createVerificationProcess for
7-
creating verification processes, supporting better SDK organization aligned with Telesign’s evolving platform.
4+
- Moved the createVerificationProcess method from the VerifyClient class to the new OmniVerify class,
5+
consolidating omnichannel verification responsibilities in one place
86

97
- Added unit and integration tests to telesignenterpise.test folder
108

telesignenterprise/omniverify.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, customer_id, api_key, rest_endpoint=BASE_URL_VERIFY_API, **kw
3131
**kwargs
3232
)
3333

34-
def createVerificationProcess(self, phone_number, params=None):
34+
def createVerificationProcess(self, phone_number, params={}):
3535
"""
3636
Create a verification process for the specified phone number.
3737
@@ -44,16 +44,14 @@ def createVerificationProcess(self, phone_number, params=None):
4444

4545
return self.post(PATH_VERIFICATION_CREATE, json_fields=params)
4646

47-
def getVerificationProcess(self, reference_id, params=None):
47+
def getVerificationProcess(self, reference_id, params={}):
4848
"""
4949
Retrieve details about the specified verification process.
5050
5151
:param reference_id: The unique identifier of the verification process.
5252
:param params: Optional query parameters as a dictionary.
5353
:return: Response object from the GET request.
5454
"""
55-
if params is None:
56-
params = {}
5755
endpoint = PATH_VERIFICATION_RETRIEVE.format(reference_id=reference_id)
5856
headers = {"Content-Type": "application/json", "Accept": "application/json"}
5957

0 commit comments

Comments
 (0)