I'm new to Salesforce development and specifically Exacttarget development. I need to write a custom opt-out page (that can be branded). So when a user clicks "Unsubscribe" they are taken to a company-branded Unsubscribe Page. I'm still working on the back-end code but the code that I have sort of works with ExactTarget. The problem is that it unsubscribes the user from ALL email lists an not just the list with the ID that I'm passing it. My php code is as follows:
$subKEY = "firstname.lastname@example.org"; $listID = "7682713"; $myclient = new ET_Client(); $subscriber = new ET_Subscriber(); $subscriber->authStub = $myclient; $subscriber->props = array("ID" => $listID, "Status" => "Unsubscribed", "SubscriberKey" => $subKEY); $results = $subscriber->patch(); print_r($results);
Is there a different syntax that is used for passing in a list ID?