Skip to content

Commit e26da4e

Browse files
Pull request #19: Added full support for the App Verify API to the C# FS SDK, including reporting unknown caller ID issues and timeout events + Removed Legacy PID Contact + Removed Legacy PID Number Deactivation
Merge in SDK/python_telesign_enterprise from feature/EOA-2026-AppVerify-Full-Support to developer Squashed commit of the following: commit 04a636882306cf9e23fad15c21e0d7cedfc49655 Merge: ba917aa 45747d5 Author: MousumiMohanty <@telesign.com> Date: Wed Sep 17 13:16:45 2025 +0530 merge develop branch to resolve conflict commit ba917aa4420ed6825c1efcde7d3818928026d771 Author: MousumiMohanty <@telesign.com> Date: Mon Sep 15 13:04:46 2025 +0530 Added full support for the App Verify API to the C# FS SDK, including reporting unknown caller ID issues and timeout events + Removed Legacy PID Contact + Removed Legacy PID Number Deactivation commit 7eaa64a Merge: 2a3e5ac 2a44d04 Author: Mousumi Mohanty <mmohanty@telesign.com> Date: Mon Sep 8 13:43:18 2025 +0000 Pull request #18: Pull request #16: feature/EOA-3971-Remove-AppVerifyClient-dependency Merge in SDK/python_telesign_enterprise from developer to master * commit '2a44d04f174b28a3d07276c3f551a01ccaeb5595': Pull request #16: feature/EOA-3971-Remove-AppVerifyClient-dependency commit 2a3e5ac Merge: 9142f6f 1b0d40a Author: Mousumi Mohanty <mmohanty@telesign.com> Date: Tue Jun 17 12:46:43 2025 +0000 Pull request #15: Developer Merge in SDK/python_telesign_enterprise from developer to master * commit '1b0d40a7970b7ef9f6dcd73fe34a7e238c3ac2a5': set basic_auth param consolidate both retrieve and update functionality update comments validate conflict update the release updated comments renamed the telesignenterprise.test to tests folder updated the comments addedupdate functionlity updated the comments created OmniVerify class and added retrieve functionality
1 parent 45747d5 commit e26da4e

16 files changed

+388
-111
lines changed

RELEASE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
3.0.0
2+
- Added full support for the App Verify API, including reporting unknown caller ID issues and timeout events
3+
- Removed Legacy PID Contact
4+
- Removed Legacy PID Number Deactivation
5+
16
2.4.0
27
- Added methods to get information about a specified phone number.
38

examples/app_verify/1_initiate_and_finalize.py

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from __future__ import print_function
2+
from telesignenterprise.appverify import AppVerifyClient
3+
4+
5+
customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
6+
api_key = "ABC12345yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="
7+
phone_number = "11234567890"
8+
9+
verify = AppVerifyClient(customer_id, api_key)
10+
11+
# Initiate App Verify Call
12+
initiate_response = verify.initiate(phone_number)
13+
print("initiate response: {}\n".format(initiate_response.json))
14+
reference_id = initiate_response.json['reference_id']
15+
print("Reference ID: ",reference_id)
16+
status_response = verify.status(reference_id)
17+
print(f"Status Code: {status_response.status_code if hasattr(status_response, 'status_code') else 'Unknown'}")
18+
print("Status: ", format(status_response.json['status']['description']))

examples/app_verify/2_initiate_and_finalize_with_verify_code.py

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from __future__ import print_function
2+
from telesignenterprise.appverify import AppVerifyClient
3+
4+
customer_id = "F797DF2A-DE2D-452D-971A-A62AAD2EEF52"
5+
api_key = "Y8MY8YQBPDy/S41+Id+/xPvubb79UiQHXDp6DMlfsxdwcixjH1RP4DP3DNHuoAuJ0ljvWWOMU/omUv46h9tDCA=="
6+
phone_number = "918105955660"
7+
8+
app_verify = AppVerifyClient(customer_id, api_key)
9+
10+
#Initiate App Verify Call
11+
initiate_response = app_verify.initiate(phone_number)
12+
if not initiate_response.ok:
13+
print(f"Error initiating app verify call: {initiate_response.json}")
14+
exit(1)
15+
16+
reference_id = initiate_response.json.get("reference_id")
17+
if not reference_id:
18+
print("No reference ID returned from initiate call. Cannot finalize.")
19+
exit(1)
20+
21+
print(f"Verification call initiated. Reference ID: {reference_id}")
22+
23+
verify_code = input("Please enter the verification code from the caller ID: ")
24+
25+
# Finalize App Verify Call
26+
finalize_response = app_verify.finalize(reference_id, verify_code=verify_code)
27+
print(f"Status Code: {finalize_response.status_code if hasattr(finalize_response, 'status_code') else 'Unknown'}")
28+
print(f"Finalize response: {finalize_response.json}")
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from __future__ import print_function
2+
from telesignenterprise.appverify import AppVerifyClient
3+
4+
customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
5+
api_key = "ABC12345yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="
6+
phone_number = "11234567890"
7+
8+
verify = AppVerifyClient(customer_id, api_key)
9+
10+
# Initiate App Verify Call
11+
initiate_response = verify.initiate(phone_number)
12+
print("initiate response: {}\n".format(initiate_response.json))
13+
14+
if not initiate_response.ok:
15+
print("Failed to initiate call. Exiting.")
16+
exit(1)
17+
18+
reference_id = initiate_response.json.get('reference_id')
19+
if not reference_id:
20+
print("No reference ID returned. Exiting.")
21+
exit(1)
22+
23+
# Report Timeout based on the reference ID
24+
timeout_response = verify.report_timeout(reference_id)
25+
print("Timeout response status code: {}\n".format(timeout_response.status_code))
26+
print("Timeout response body: {}\n".format(timeout_response.json))
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from __future__ import print_function
2+
from telesignenterprise.appverify import AppVerifyClient
3+
4+
customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
5+
api_key = "ABC12345yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="
6+
phone_number = "11234567890"
7+
8+
verify = AppVerifyClient(customer_id, api_key)
9+
10+
# Initiate App Verify Call
11+
initiate_response = verify.initiate(phone_number)
12+
print("initiate response: {}\n".format(initiate_response.json))
13+
14+
if not initiate_response.ok:
15+
print("Failed to initiate call. Exiting.")
16+
exit(1)
17+
18+
reference_id = initiate_response.json.get('reference_id')
19+
prefix = initiate_response.json.get('prefix')
20+
21+
if not reference_id or not prefix:
22+
print("Missing reference ID or prefix. Exiting.")
23+
exit(1)
24+
25+
unknown_caller_id = prefix + "99999" # simulate Unknown caller ID
26+
27+
# Report Unknown Caller ID
28+
unknown_response = verify.report_unknown_callerid(reference_id, unknown_caller_id)
29+
print("Unknown caller ID report status code: {}\n".format(unknown_response.status_code))
30+
print("Unknown caller ID report response body: {}\n".format(unknown_response.json))
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from __future__ import print_function
2+
from telesignenterprise.appverify import AppVerifyClient
3+
4+
customer_id = "FFFFFFFF-EEEE-DDDD-1234-AB1234567890"
5+
api_key = "ABC12345yusumoN6BYsBVkh+yRJ5czgsnCehZaOYldPJdmFh6NeX8kunZ2zU1YWaUw/0wV6xfw=="
6+
phone_number = "11234567890"
7+
8+
verify = AppVerifyClient(customer_id, api_key)
9+
10+
# Initiate App Verify Call
11+
initiate_response = verify.initiate(phone_number)
12+
print("initiate response: {}\n".format(initiate_response.json))
13+
14+
if not initiate_response.ok:
15+
print("Failed to initiate call. Exiting.")
16+
exit(1)
17+
18+
reference_id = initiate_response.json.get('reference_id')
19+
20+
if not reference_id:
21+
print("No reference ID returned. Exiting.")
22+
exit(1)
23+
24+
# Fetch transaction status for the reference ID
25+
status_response = verify.status(reference_id)
26+
print("transaction status response code: {}\n".format(status_response.status_code))
27+
print("transaction status response body: {}\n".format(status_response.json))

examples/phoneid_number_deactivation/1_check_phone_number_deactivated.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
version = "2.4.0"
3+
version = "3.0.0"
44

55
try:
66
with open("README") as f:
@@ -32,6 +32,6 @@
3232
author='TeleSign Corp.',
3333
author_email='support@telesign.com',
3434
url="https://github.com/telesign/python_telesign",
35-
install_requires=['telesign >=2.2.1, <=2.4.0'],
35+
install_requires=['telesign >=2.2.1, <=3.0.0'],
3636
packages=find_packages(exclude=['test', 'test.*', 'examples', 'examples.*']),
3737
)

0 commit comments

Comments
 (0)