Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About aairedes

  • Rank
  1. Hello everybody: I'm using the API of WHMCS and it's works all that i do. But domainregister don't work. I want to send to register the id of domain that i want to register. My code is: $postfields = array(); $postfields["username"] = "xxx"; $postfields["password"] = "xxx"; $postfields["accesskey"] = "xxx"; $postfields["action"] = "domainregister"; $postfields["domainid"] = 623; // id of the domain foreach($params as $k => $v) $postfields[$k] = utf8_encode($v); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $this->url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); The problem is $data is always in blank. No error. No success. Always in blank. ¿Need i another parameter in domainregister? ¿Do you have some example to send the domain to the register? I expect your answer. Thank you very much.
  2. Hello, i want to delete a domain using the API of WHMCS. Only delete the domain, not the client. I see in the API Release Domain, is this the right command i must to use? The example is: $postfields["action"] = "domainrelease"; $postfields["domainid"] = "1"; $postfields["newtag"] = "ENOM"; My question is: if i haven't a new tag (because i want to delete only the domain), what i must to write?: $postfields["action"] = "domainrelease"; $postfields["domainid"] = "1"; $postfields["newtag"] = ""; Is this right? Thanks
  • 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