Hi All,
I have looked for over 2 hours searching for how to get the number of allowed addon domains using the CPanel API. I have been able to do a surprising number of things and am quite pleased with how easy things are to do and how well documented most features are but I cannot figure out this one.
I have been accessing the API generally using XML-API and GET parameters like so:
(SiteURL)/xml-api/cpanel?cpanel_xmlapi_module=AddonDomain&cpanel_xmlapi_func=listaddondomains
I want to be able to keep track of the number of allowed addon domains in my DB so users don't make the request and get an error beforehand. I generally prefer to disable features as opposed to catching errors where possible (yes I catch errors as well).
I know I can get the package details querying the WHM API stuff and do that with my own reseller accounts but I can't see how to get it using the CPanel API. My users may have CPanel accounts on servers that I may not have a reseller account so I need to assume WHM access is not possible.
Thanks much for any help,
Roger D.
I have looked for over 2 hours searching for how to get the number of allowed addon domains using the CPanel API. I have been able to do a surprising number of things and am quite pleased with how easy things are to do and how well documented most features are but I cannot figure out this one.
I have been accessing the API generally using XML-API and GET parameters like so:
(SiteURL)/xml-api/cpanel?cpanel_xmlapi_module=AddonDomain&cpanel_xmlapi_func=listaddondomains
I want to be able to keep track of the number of allowed addon domains in my DB so users don't make the request and get an error beforehand. I generally prefer to disable features as opposed to catching errors where possible (yes I catch errors as well).
I know I can get the package details querying the WHM API stuff and do that with my own reseller accounts but I can't see how to get it using the CPanel API. My users may have CPanel accounts on servers that I may not have a reseller account so I need to assume WHM access is not possible.
Thanks much for any help,
Roger D.