Skip to content

Instantly share code, notes, and snippets.

View abediali's full-sized avatar

Ali Abedi abediali

View GitHub Profile
/**
* Synchronize to Hulu
*/
protected function sendDatesToHulu($inField = "huluDatesNew", $outField = "huluResults")
{
$debugFlag = isset($_REQUEST['syncDebug']) && $_REQUEST['syncDebug'] == "on";
if ($debugFlag)
exit;
params = {
email: data.email,
"list_id": xxxx,
"first_name": data.firstName,
"last_name": data.lastName,
"$source": source[type],
"$fields": '$consent,$source',
"$consent": "web",
}