Jump to content

QuinnP

New Member
  • Posts

    2
  • Joined

  • Last visited

About QuinnP

QuinnP's Achievements

Junior Member

Junior Member (1/3)

  • Helpful Rare

Recent Badges

0

Reputation

1

Community Answers

  1. 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.
  2. 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!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated