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

gators

Registered
Aug 3, 2011
2
0
51
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?
 

cPanelDavidN

Well-Known Member
Staff member
Dec 17, 2009
571
3
68
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
 

gators

Registered
Aug 3, 2011
2
0
51
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.