Jump to content

API:Domain WHOIS


KevinUK

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated