[luci] How to communicate with the Json Rpc API

Jo-Philipp Wich xm at subsignal.org
Fri Aug 21 19:47:32 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maybe this works?

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

Sorry, I have no real clue about php but don't they have some procedural
interface? Or a low level "magic method" like __get() ?

~ JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqO3bAACgkQdputYINPTPMFVgCgjaI588APpLZydGsbka0rSzxH
skEAn3L7cr+dQuF0oP4ndFIQwrn3rqfb
=Yyhh
-----END PGP SIGNATURE-----


More information about the luci mailing list