Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Set a default adminuser for Developer Internal API

Websavers shared this idea 1 year ago
Completed

When working with the Internal API it would be really nice if WHMCS would automatically set the adminuser by default to either:

System: when the API call is coming from an automated hook (like cron or automatic module provisioning)

The currently logged in admin: when it's triggered by a logged in admin

This way the adminuser value is only required to be set when the dev wishes to specifically override it.

I'd love to be able to more easily use Internal API code within my modules, but it's fairly annoying to ask the module user to supply an admin user in the module's settings, then load the setting into the API call.... especially when it doesn't seem like it should be all that necessary.

Comments (1)

photo
1

This can be marked completed, as WHMCS no longer requires the adminuser variable in API calls :)

Thanks for changing this!