PHP example of API call mailkit.campaigns.single.schedule
$url = "https://api.mailkit.eu/rpc.fcgi";
$ID = "69600012";
$MD5 = "wAlwee4ejgajsdS7vWLNQoQ";
$date = '2014-01-01';
$message_id = '15005';
$condition = '';
$request = xmlrpc_encode_request(
"mailkit.campaigns.single.schedule",
array(
"$ID",
"$MD5",
"$message_id",
"subject",
"$date",
"02:00",
base64_encode($condition),
''
),
array('encoding' => "UTF-8")
);
$context = stream_context_create(
array(
'http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)
)
);
echo xmlrpc_decode(file_get_contents($url, false, $context), 'utf-8')."
\n";
}}