I’m testing out the example plug in and when I try to go to this URL, index.php?module=API&method=LgPlugin.getAnswerToLife?truth=0, I get the following error.
The function getAnswerToLife accepts a param with name truth, but it doesn’t look like it is working.
Nevermind, I found the issue. The documentation in API.php is wrong.
The API says: /index.php?module=API&method=LgPlugin.getAnswerToLife?truth=0
where the last ? should be an &
The correct url is : /index.php?module=API&method=LgPlugin.getAnswerToLife&truth=0