Add first function

This commit is contained in:
Foxtrot 2016-07-12 13:40:03 +01:00
parent bf64201ffa
commit 94500eebd6

4
api.md
View File

@ -285,9 +285,9 @@ Action|Description|Parameters
## Module.php API ## Module.php API
Every module must extend the `Module` class that resides in `Module.php`. Extending this class gives the module access to the following API functions. For more information, see [Creating Modules](https://wiki.wifipineapple.com/creating_modules.md). Every module must extend the `Module` class that resides in `Module.php`. Extending this class gives the module access to the following API functions. For more information, see [Creating Modules](https://wiki.wifipineapple.com/creating_modules.md).
Test|Test|Test Function|Arguments|Description|Usage
----|----|---- ----|----|----
deez|nuts|lolxdmemes execBackground()|`command`|Will execute `command` in the background.|`$this->execBackground("ifconfig wlan1 down");`
## Community Python API ## Community Python API
A community python API wrapper exists [here](https://github.com/735tesla/python-pineapple) but documentation is still in progress. A community python API wrapper exists [here](https://github.com/735tesla/python-pineapple) but documentation is still in progress.