/* // LeadVertex script// */ $productList = array ( 0 => array ( 'goodID' => 205798 'quantity' => 1, 'price' => '49' ) ); $data = array( 'phone' => $_POST['phone'], 'fio' => $_POST['name'], 'goods' => $productList, 'additional1' => $_SESSION['utms']['utm_source'], // utm_source 'additional2' => $_SESSION['utms']['utm_medium'], // utm_medium 'additional3' => $_SESSION['utms']['utm_term'], // utm_term 'additional4' => $_SESSION['utms']['utm_content'], // utm_content 'additional5' => $_SESSION['utms']['utm_campaign'], // utm_campaign 'utm_source' => $_SESSION['utms']['utm_source'], // utm_source WEB 'utm_medium' => $_SESSION['utms']['utm_medium'], // utm_medium WEB 'utm_term' => $_SESSION['utms']['utm_term'], // utm_term WEB 'utm_content' => $_SESSION['utms']['utm_content'], // utm_content WEB 'utm_campaign' => $_SESSION['utms']['utm_campaign'] // utm_campaignWEB ); $myCurl = curl_init(); curl_setopt_array($myCurl, array( CURLOPT_URL => 'https://demo-9368.leadvertex.ru/api/webmaster/v2/addOrder.html?webmasterID=1&token=9337243', CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POSTFIELDS => http_build_query($data), )); $response = curl_exec($myCurl); $arr = json_decode($response, true); /* // LeadVertex script// */
Спасибо! Ваш заказ принят.
Мы свяжемся с Вам для уточнения деталей заказа в ближайшее время.