abstract_api.phone_validation.phone_validation module#

class abstract_api.phone_validation.phone_validation.PhoneValidation(api_key: str | None = None)[source]#

Bases: BaseService[PhoneValidationResponse]

AbstractAPI phone validation and verification service.

Used to validate and verify a phone number.

Attributes:

_subdomain: Phone validation service subdomain.

check(phone: str) PhoneValidationResponse[source]#

Validates and verifies a phone number.

Args:

phone: An phone number to be validated and verified.

Returns:

PhoneValidationResponse representing API call response.