// $CampaignResult = $ConstantContact->addCampaign ( $myCampaign, $fromAddress ); $time = "2013-02-07T10:30:53.105Z"; // $CampaignResult = $ConstantContact->scheduleCampaign($myCampaign, $time); //print_r($CampaignResult); $lastCampaigns = $ConstantContact->getCampaigns(); // print_r($lastCampaigns['campaigns'][0]);exit; /*if (isset ( $CampaignResult->status )) { foreach ( $lastCampaigns ['campaigns'] as $recent ) { if ($recent->name == $CampaignResult->name) { $CampaignResult == $ConstantContact->getCampaignDetails ( $recent ); print_r($CampaignResult); } } }*/ // $CampaignResult = $ConstantContact->scheduleCampaign($myCampaign, $time); $CampaignResult = $ConstantContact->scheduleCampaign($lastCampaigns['campaigns'][0], $time); } else { if ($_POST['AddList'] == 'Add List') { $listInfo = array(); $listInfo['name'] = 'News Letter1'; $listInfo['sortOrder'] = 1; $List = new ContactList($listInfo); $listReturn = $ConstantContact->addList($List); print_r($listReturn); exit; } } } } } }