From: Jamie C. <jca...@we...> - 2014-11-22 18:03:55
|
On 22/Nov/2014 02:50 Andrea Carpani <and...@dn...> wrote .. > Hello, > > I'm currently investigating the possibility to use virtualmin in our > shared hosting environment. > Since we will need custom modules I'm also trying to figure out if/how > it is possible expose functions added in a custom module through > virtualmin Remote API calls.. > > From the documentation it looks like Remote API is used to call the > same functions that can be called through the commandline virtualmin > script. > So probably my question should sound more like "How can I export my > custom module functions to the virtualmin script" ? Hi Andrea, This is definitely possible - if your module is a Virtualmin plugin that has been enabled on the Feature and Plugins page, you can create scripts in the module directory named like your-api-call.pl that have a similar structure to the .pl scripts for the core Virtualmin API (which can be seen in the virtual-server directory). - Jamie |