Repository navigation
Upgrading
No action required. Existing code keeps compiling and behaves as before: the new option is sent only when you set it, and the new response field is filled in only when you ask for domain info. awaitDomainInfo is the last ZBValidateOptions parameter and domainDetectedServices the last ZBValidateResponse parameter, both with defaults.
What's new
Single email validation can now wait for the domain checks (awaitDomainInfo, sent as await) and returns the services detected on the domain (domain_detected_services). Both belong to the Website Availability and WHOIS Checker (domain_info): https://www.zerobounce.net/docs/email-validation-api-quickstart/whois-checker
Added
ZBValidateOptions(awaitDomainInfo:), sent asawait=true|falseonly when set, on single validate (GET and POST), never onvalidateBatch. It only takes effect withdomainInfo: trueand can add up to about 30 seconds; keep the HTTP timeout at 60 seconds or more (the SDK default is 120).ZBValidateResponse.domainDetectedServices(ZBDomainDetectedServices?withintegrationsandservices, each a list ofZBDetectedServicewithname,keyandcategory); nil when the API sends null or omits it. Batch rows carry it too.
Fixed
- The documented values of
domainWebsiteExistsanddomainRegistrantCompanyName:"true","false","unchecked"and"not_found"(the company name otherwise).
Dependencies
No dependency changes.
Why this version
Minor release: a new request option and a new response field, with no breaking changes.
Full Changelog: v4.1.0...v4.2.0