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.

Addon and Parket domains cound with XML API, or something else...

Discussion in 'cPanel Developers' started by bbhsoft, Mar 21, 2008.

  1. bbhsoft

    bbhsoft Member

    Joined:
    Feb 19, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Addon and Parked domains count with XML API, or something else...

    Hello,

    I'm writing an application that will run on a server that's updated to the latest cPanel version. I need to know, where can i get the Addon Domains for an account. It would be usefull if i know the Parked Domains too, but i really need the Addon Domains list/count.

    Thank you!
     
    #1 bbhsoft, Mar 21, 2008
    Last edited: Mar 22, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The first code sample in our documentation for calling API2 from the XML-API includes how to list all parked domains: http://www.cpanel.net/plugins/xmlapi/cpanel.html

    The API2 function for listing addon domains is Park::listaddondomains. You can find an example of how to use it in /usr/local/cpanel/base/frontend/x3/addons/index.html near the bottom of that file.

    Documentation for API2 functionality is still a work in progress.
     
Loading...

Share This Page