Re: [webmin-devel] Custom modules and remote API
"Jamie Cameron" <[email protected]> Sat, 22 Nov 2014 10:02:24 -0800 (PST)
| Newsgroups | gmane.comp.web.webmin.devel |
|---|---|
| Message-ID | <[email protected]> |
On 22/Nov/2014 02:50 Andrea Carpani <[email protected]> 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 ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk - Forwarded by the Webmin development list at [email protected] To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-devel