KevinUK
02-11-10, 08:56 AM
Hi,
Has anyone integrated the WHMCS API into their main web site? I've started playing with some of the functions, and the API : Domain WHOIS seems to work quite well, however it'll accept entries without a TLD and show the domain as available for registration.
For example, checking the availability for 'yyy' gives this result:
array(4) { ["result"]=> string(7) "success" ["status"]=> string(9) "available" ["whois"]=> string(0) "" [""]=> NULL }
Is there any possibility to add a regular expression to the core files which check domain availability, or is this something that should be validated before the string is sent to the API anyway? I could code something for that, but the TLDs our company makes available changes over time, and Ilike the idea of any new TLD offering being made available automatically on the domain availability script.
Oh one more thing, I suppose the TLD element could be enforced by using a drop-down menu, but I think the user experience is more satisfying if they type in their desired domain name in full.
Thanks,
-Kevin
Has anyone integrated the WHMCS API into their main web site? I've started playing with some of the functions, and the API : Domain WHOIS seems to work quite well, however it'll accept entries without a TLD and show the domain as available for registration.
For example, checking the availability for 'yyy' gives this result:
array(4) { ["result"]=> string(7) "success" ["status"]=> string(9) "available" ["whois"]=> string(0) "" [""]=> NULL }
Is there any possibility to add a regular expression to the core files which check domain availability, or is this something that should be validated before the string is sent to the API anyway? I could code something for that, but the TLDs our company makes available changes over time, and Ilike the idea of any new TLD offering being made available automatically on the domain availability script.
Oh one more thing, I suppose the TLD element could be enforced by using a drop-down menu, but I think the user experience is more satisfying if they type in their desired domain name in full.
Thanks,
-Kevin