Hello all,
I'm struggling to use the PHP API to get the value from a custom field of a subscriber into a PHP variable.
Here is what I'm trying to do (the question marks are where I need guidance. See code notes for my intentions):
Does anyone have some ideas that could help?
Thanks!
I'm struggling to use the PHP API to get the value from a custom field of a subscriber into a PHP variable.
Here is what I'm trying to do (the question marks are where I need guidance. See code notes for my intentions):
PHP:
$listUid = '1234';
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();
// get subscriber's existing id, using the value from a form submission, and add the id to the subscriber_id variable
$response = $endpoint->emailSearch($listUid, $_POST['EMAIL']);
$subscriber_id = ???
// use the id from above to get the subscriber's custom field value, and add it to the subscriber_custom_field_value variable
$response = $endpoint->getSubscriber($listUid, $subscriber_id);
$subscriber_custom_field_value = ???
Does anyone have some ideas that could help?
Thanks!