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.

xmlapi

Discussion in 'cPanel Developers' started by scwhite, Feb 12, 2016.

  1. scwhite

    scwhite Registered

    Joined:
    Aug 6, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I cannot find the api function to add a cpanel account to whm. I used this to add a non-cpanel addon domains to another specific cpanel domain but I cannot figure out how to add a new cpanel account to the roor WHM :

    $results=print $xmlapi->api2_query('cpanelusernm', "AddonDomain", "addaddondomain", array(newdomain=>$domain, dir=>"public_html/" . domain . ".com", subdomain=>$domain, pass=>"abc123!#") );
     
  2. cPDavidN

    cPDavidN cPanel Developer
    Staff Member

    Joined:
    Mar 19, 2013
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page