Current Path :
/
usr
/
share
/
doc
/
cpanel-php74-horde-rpc-2.1.9
/
examples
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//usr/share/doc/cpanel-php74-horde-rpc-2.1.9/examples/xmlrpc.php
<?php /** * @package Rpc */ die("Please configure the URL, username, and password, and then remove this line.\n"); // XML-RPC endpoint $rpc_endpoint = 'http://example.com/horde/rpc.php'; // XML-RPC method to call $rpc_method = 'calendar.listCalendars'; // XML-RPC options, usually username and password $rpc_options = array( 'request.username' => '', 'request.password' => '', ); $http_client = new Horde_Http_Client($rpc_options); $result = Horde_Rpc::request( 'xmlrpc', $GLOBALS['rpc_endpoint'], $GLOBALS['rpc_method'], $GLOBALS['http_client'], array()); var_dump($result);