Skip to content
Kristian Larsson edited this page Dec 30, 2013 · 1 revision

Here's a quick example on how to talk to nipapd's XML-RPC API using PHP.

<?php
require_once 'XML/RPC2/Client.php';
$client = XML_RPC2_Client::create('http://guest:guest@127.0.0.1:1337/XMLRPC');
$auth = array('authoritative_source' => 'nipap');
$result = $client->echo(array(
    'auth' => $auth,
    'message' => "tjong")
);
print $result;
?>
Clone this wiki locally