The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Delete domain api error

Discussion in 'cPanel Developers' started by jfgreen, Apr 19, 2016.

  1. jfgreen

    jfgreen Registered

    Joined:
    Apr 19, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Boynton Beach
    cPanel Access Level:
    Website Owner
    I am having issues with removing / deleting addon domains from cpanel through api.

    you can see my error screenshot here [Removed - Please Add to thread in CODE tags]
    My code is as followed:

    Code:
    <?php
    
    include("xmlapi.php");
    
    $xmlapi = new xmlapi('127.0.0.1');
    
    echo $xmlapi->get_debug();
    
    $xmlapi->password_auth("wedoma5",'mypass');
    
    
    $add_addon = $xmlapi->api2_query('', 'AddonDomain', 'deladdondomain',
            array("domain" => "domainex.com",
                "subdomain" => "domainex.com"));
    
    
    print_r($add_addon);
    ?>

    Can someone please help me?
     
    #1 jfgreen, Apr 19, 2016
    Last edited by a moderator: Apr 19, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,696
    Likes Received:
    656
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page