This function returns header and footer HTML. You can use this HTML to create a page with the same visual appearance as your cPanel theme.
uapi --output=jsonpretty \ --user=username \ Chrome \ get_dom \ page_title='Test'
{- "apiversion": 3,
- "func": "get_dom",
- "module": "Chrome",
- "result": {
- "data": {
- "footer": "\n<!-- The Footer HTML of the user's assigned theme -->\n</html>\n\n",
- "header": "\n\n<!DOCTYPE html>\n\n<html lang=\"en\" dir=\"ltr\">\n<!-- The Header HTML of the user's assigned theme -->"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}