hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
ubuntu
/
bmse.net
/
Upload FileeE
HOME
<?php include('includes/application_includes.php'); if (isset($_REQUEST['email']) AND $_REQUEST['email']!='') { if (!in_array($_REQUEST['email'], $junkWords) AND !in_array($_REQUEST['city'], $junkWords) ) { $values = array( 'email' => $_REQUEST['email'], 'city_state' => $_REQUEST['city'], 'insert_dttm' => $current_date ); $subid = $db->insert('bmse_preshow_newsletter_subscribers', $values); $info = $db->getRow('SELECT `id` FROM `bmse_preshow_newsletter_subscribers` WHERE `email`="'.$_REQUEST['email'].'" AND `city_state`="'.$_REQUEST['city'].'"'); if (empty($info)) { # zoho api lead insertion -starts here # $jayParsedAryp = "refresh_token=".$refresh_token."&client_id=".$client_id."&client_secret=".$client_secret."&grant_type=refresh_token"; $make_callp = callAPIP('POST', 'https://accounts.zoho.com/oauth/v2/token?', ($jayParsedAryp)); $responsep = json_decode($make_callp, true); //ArrayDisplay($responsep); $jayParsedAry = array( "data" => array( array( "Account_Name" => $_REQUEST['email'], "itempkid" => "asub".$subid, "Last_Name" => "Another Bmse Subsriber", "Email" => $_REQUEST['email'], "Event_Interested_In"=>$_REQUEST['city'], "itemtype" => "showreminders" )), "trigger" =>array( "approval", "workflow", "blueprint" ) ); $make_call = callAPI('POST', 'https://www.zohoapis.com/crm/v2/Contacts', json_encode($jayParsedAry), $responsep['access_token']); $response = json_decode($make_call, true); //ArrayDisplay($response); # zoho api lead insertion -ends here # } } } ?>