handle($_GET); } else { // dump a simple usage output for people to use. // this could be moved to an api doc in the future, or generated from // the AurJSON class directly with phpdoc. For now though, just putting it // here. ?>

Allowed methods

Each method requires the following HTTP GET syntax:

type=methodname&arg=data

Where methodname is the name of an allowed method, and data is the argument to the call.

If you need jsonp type callback specification, you can provide an additional variable callback.

Examples

search
http://aur-url/rpc.php?type=search&arg=foobar
info
http://aur-url/rpc.php?type=info&arg=foobar
multiinfo
http://aur-url/rpc.php?type=multiinfo&arg[]=foo&arg[]=bar
msearch
http://aur-url/rpc.php?type=msearch&arg=john
Callback
http://aur-url/rpc.php?type=search&arg=foobar&callback=jsonp1192244621103