[luci] How to communicate with the Json Rpc API

Clemens John clemens-john at gmx.de
Fri Aug 21 18:24:53 CEST 2009


In Php this doesn´t work because the dot (.) is an operator in Php
http://us3.php.net/manual/en/language.operators.string.php

$sys = new jsonRPCClient('http://ipadress/cgi-bin/luci/rpc/sys?auth='.$token);
echo $sys->net.devices();
=>Does not work

Error message:
Fatal error: Call to undefined function devices() in 
/home/httpd/html/netmon/service.php on line 11

Does anyone know how to do it in Php?

Bye
Clemens

On Friday 21 August 2009 16:35:04 Steven Barth wrote:
> Just use prefix.function as the method name.
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci


More information about the luci mailing list