PhoneId
¶
-
class
telesign.api.
PhoneId
(customer_id, secret_key, ssl=True, api_host='rest.telesign.com', proxy_host=None, timeout=None)¶ The PhoneId class exposes three services that each provide detailed information about a specified phone number.
Attributes customer_id A string value that identifies your TeleSign account. secret_key A base64-encoded string value that validates your access to the TeleSign web services. ssl (optional) Specifies whether to use a secure connection with the TeleSign server. Defaults to True. api_host (optional) The Internet host used in the base URI for REST web services. The default is rest.telesign.com (and the base URI is https://rest.telesign.com/). proxy_host (optional) The host and port when going through a proxy server. ex: “localhost:8080. The default to no proxy. timeout (optional) A timeout value to use in requests - float or tuple (see requests documentation for details). Defaults to None. Note
You can obtain both your Customer ID and Secret Key from the TeleSign Customer Portal.
Methods
standard
Retrieves the standard set of details about the specified phone number. score
Retrieves a score for the specified phone number. contact
In addition to the information retrieved by standard, this service provides the Name & Address associated with the specified phone number. Methods
standard
Retrieves the standard set of details about the specified phone number. score
Retrieves a score for the specified phone number. contact
In addition to the information retrieved by standard, this service provides the Name & Address associated with the specified phone number. live
In addition to the information retrieved by standard, this service provides actionable data associated with the specified phone number.