This function checks whether the cPanel account can contact their hosting provider from the cPanel interface.
uapi --output=jsonpretty \ --user=username \ Contactus \ is_enabled
{- "apiversion": 3,
- "func": "is_enabled",
- "module": "Contactus",
- "result": {
- "data": {
- "enabled": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}