Hi
I think we can call cpanel api through whm right?
CallingAPIFunctions < AllDocumentation/AutomationIntegration < TWiki
says that :Under certain circumstances, you may need to use the XML or JSON API as a "wrapper" to access the functions performed by API version 1 or version 2. You can do this from within either WebHost Manager or cPanel.
This is what I did:
in whm i hit :
domain.com:2086/xml-api/cpanel?cpanel_xmlapi_user=root&cpanel_xmlapi_module=Email&cpanel_xmlapi_func=listpopswithdisk%20&cpanel_xmlapi_version=2&domain=somedomain.com
and I got following result:
<cpanelresult>
<apiversion>2</apiversion>
<func>listpopswithdisk </func>
<module>Email</module>
</cpanelresult>
Did I go wrong somewhere? I need to be able to call Cpanel Api functions without logging in to respective cPanel but from WHM itself.
HELP!!![]()



LinkBack URL
About LinkBacks
Reply With Quote







