KevinUK Posted February 11, 2010 Share Posted February 11, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
dsaunier Posted February 11, 2010 Share Posted February 11, 2010 I have been trying to use the API and did with my previous site, but the upgrade to 4.1.2 (from 3.6) kind of broke the API for me. I now cannot just add domains anymore as the "adddomain" call was removed, apparently I have to switch to MySQL queries, too bad. As for the Whois I use the standard config, hence "trim" data before sending it to the API anyway, such as validating there is an extension. On the homepage we have a drop-down menu to save space, then checkboxes on the more advanced domain search. Cheers. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.