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.

cPanel XML API: domainuserdata does not return data for parked domains

Discussion in 'cPanel Developers' started by gators, Aug 3, 2011.

  1. gators

    gators Registered

    Joined:
    Aug 3, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Howdy folks,

    I'm hoping someone can solve this dilemma for me -- the API doesn't seem to return any info for a parked domain. If I query the API against a parked domain, I get the following results:

    Code:
    <domainuserdata>
      <result>
        <status>1</status>
        <statusmsg>Obtained userdata.</statusmsg>
      </result>
      <userdata></userdata>
    </domainuserdata>
    
    <!-- Web Host Manager 11.30.1.4 (c) cPanel, Inc. 2011 http://cpanel.net/  Unauthorized copying is prohibited. -->
    Here's the userdata/main file:
    Code:
    ---
    addon_domains: {}
    
    main_domain: exampledomain.net
    parked_domains:
      - exampledomain.com
    sub_domains: []
    
    I'm calling the URL /xml-api/domainuserdata?domain=exampledomain.com to get this data. The script I'm using only has issues with parked domains, it seems.

    Any thoughts? Is this an issue with the API or am I somehow calling it incorrectly?
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi gators,

    Unfortunately, I believe this has been the behavior for all prior releases.

    However, it appears the logic has been reworked for cPanel version 11.32. I just tested in 11.31 (a dev release of 11.32) and it behaves as expected.

    Regards,
    -DavidN
     
  3. gators

    gators Registered

    Joined:
    Aug 3, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi David,

    Thanks for the reply, that's good to hear. I remember 11.26 had a few goofy API bugs that went away with 11.28, so it's good to see it continually improving.
     
Loading...

Share This Page