Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To start off with, if there is already a methond that I just couldn't find, please excuse me doing things for the sake of doing things :D
Forum Reference: http://forum.pyload.org/viewtopic.php?f=7&t=4321
I could not use the interface "http://PYLOAD.ADDR/api/call".
The reason is, that I cannot supply the type "ServiceCall" for the parameter "info" via URL.
I modified Api.py::call to also accept a dict as input parameter.
Now, I can call exposed API functions with the following URI encoded object:
{"plugin":"PLUGIN", "func":"FUNCTION", "arguments":['arg1','arg2'], "parseArguments":False}
For example:
http://PYLOAD.ADDR/api/call?info=%7B"plugin"%3A"UpdateManager"%2C"func"%3A"autoreloadPlugins"%2C"arguments"%3A[]%2C"parseArguments"%3AFalse%7D
Clear text of URL parameter
{"plugin":"UpdateManager","func":"autoreloadPlugins","arguments":[],"parseArguments":False}
Regards!
PS: Sooner or later, I consider adding additional content to the webinterface provided by plugins. Therefore I need to call their functions this way.