Copy directories,files and dump sql files between accounts via whm/uapi
Recently we build a project that is using WHM & UAPI to create accounts and copy script files via skeleton directory which is working perfectly.
What challenged us is, after installing latest version of script we also needed to copy some resource files. These resources and sample SQL files are located in another account in same server, so we need to copy them to new account and dump SQL file.
It might seem kinda personal request but google search shows me that there are people looking for same feature as well.
We made it work by updating our script to pull resources but it would be easier if we can do it via API through reseller tokens.
I know that this can also be done with hooks but as far as i know hooks can not be attached to a reseller. So it runs everytime for any owner account.
Just an idea.
I'd need a bit more to fully understand your problem, but I wonder if it would be solved by calling the cPanel APIs via WHM API with the correct permissioned user. Have a look at https://api.docs.cpanel.net/whm/use-whm-api-to-call-cpanel-api-and-uapi/#introduction and see if it better aids you in solving your problem.
I'd need a bit more to fully understand your problem, but I wonder if it would be solved by calling the cPanel APIs via WHM API with the correct permissioned user. Have a look at https://api.docs.cpanel.net/whm/use-whm-api-to-call-cpanel-api-and-uapi/#introduction and see if it better aids you in solving your problem.
Replies have been locked on this page!