Passing Params to Plugin


#1

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,


#2

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


(Matthieu Aubry) #3

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


#4

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