Passing Params to Plugin

Hello Everyone,

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.

Thank you for your time,

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

Hi there, on which page did you see this wrong documentation, I would like to correct it :slight_smile: cheers

It was on the API.php page that the conole program created when I made a new plugin.