Author Topic: How To delete domain Annd subdomain use api  (Read 822 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How To delete domain Annd subdomain use api
« on: February 03, 2024, 10:07:32 PM »
i'm try this code but not working
       
       $domain = "sub.example.com";
         $data = array("key" => "OOFju3Zb9s",'action' => 'delete','user' => 'amjed','type' => 'subdomain','name' => $domain,'path' => '/'.$domain);
                  $url = "https://000.000.00.000:2304/v1/admindomains";
                  $ch = curl_init();
                  curl_setopt($ch, CURLOPT_URL, $url);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
                  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                  curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
                  curl_setopt ($ch, CURLOPT_POST, 1);
                  $response = curl_exec($ch);
                  curl_close($ch);

Offline
*****
Re: How To delete domain Annd subdomain use api
« Reply #1 on: February 04, 2024, 02:54:42 PM »
hello
What response do you have from the API?

Offline
*
Re: How To delete domain Annd subdomain use api
« Reply #2 on: February 04, 2024, 06:38:15 PM »
There is no response

If you have a ready code, please send it

Offline
*
Re: How To delete domain Annd subdomain use api
« Reply #3 on: April 02, 2024, 08:50:13 AM »
If there's no reply, please check the firewall on the CWP server. Allow the correct ports. 2304 I think.
PLEASE REMOVE CAPTCHA.. IT'S ANCIENT AND A MASSIVE TIME WASTE BAD EXPERIENCE FOR USERS. THE MATH SOLUTION IS SUFFICIENT. OR HAVE IT ONCE AND REMEMBER IF I'M A HUMAN

Offline
*
Re: How To delete domain Annd subdomain use api
« Reply #4 on: April 11, 2024, 11:58:42 AM »
the port is open but code not working