-
Notifications
You must be signed in to change notification settings - Fork 130
Plugin: XMLRPC
tenzap edited this page Mar 2, 2022
·
2 revisions
Sample XMLRPC client call using CodeIgniter XML-RPC Classes:
$this->load->library('xmlrpc');
$server_url = site_url('http://kalkun-url/index.php/plugin/xmlrpc/send_sms');
$this->xmlrpc->server($server_url, 80);
$this->xmlrpc->method('send_sms');
$this->xmlrpc->set_debug(TRUE);
$request = array('+1234', 'Testing XMLRPC');
$this->xmlrpc->request($request);
if (!$this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
}
else
{
print_r($this->xmlrpc->display_response());
}
Note: This is a plugin, you need to enable before use it.