function insert_record($xml_string){
$post_params = array();
$post_params['authtoken'] = "mytoken";
$post_params['zc_ownername'] = "myownername";
$post_params['scope'] = 'creatorapi';
$post_params ['XMLString'] = $xml_string;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api_url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_params);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
}