okay so to anybody who's wondering... the API key is in plane text which (afaik)... is not how it's supposed to be
https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html#2-general-secrets-management
however this does make my job easier. If anybody else is looking, your cURL requests look something like this:
curl -H 'Authorization: whm {tblservers.username}:{tblservers.accesshash}' 'https://{tblservers.hostname}:{tblservers.port}/json-api/{action}?api.version=1'
Replace the action and the relevant fields from tblservers.
As the title says, I'm writing an addon module and I'd like to know how I can make API calls to cPanel servers that have the API details stored in tblservers. I wasn't able to find anything in the dev docs, so any examples or documentation would be much appreciated. Thanks!