Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    2

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

    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. #2
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

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

    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
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    2

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

    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.

Similar Threads & Tags
Similar threads

  1. Please return 3rd level domains as a parked domains
    By isranet in forum Archived Feature Requests
    Replies: 3
    Last Post: 06-01-2010, 03:02 PM
  2. [Case 33066] Request XML-API functions: park and unpark domains
    By XenomediaBV in forum cPanel Developers
    Replies: 2
    Last Post: 09-04-2009, 02:07 PM
  3. xml api on a reseller account return empty string
    By gogume in forum cPanel Developers
    Replies: 4
    Last Post: 05-22-2009, 10:00 AM
  4. Replies: 5
    Last Post: 04-10-2009, 06:32 AM
  5. Replies: 1
    Last Post: 03-24-2008, 08:59 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube