Skip to content

Commit

Permalink
Added example for MailWizzApi_Endpoint_ListSubscribers::searchByCusto…
Browse files Browse the repository at this point in the history
…mFields
  • Loading branch information
ghimes committed Jul 19, 2019
1 parent 9e5edf3 commit 96c6ea8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/list_subscribers.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@

/*===================================================================================*/

// SEARCH BY CUSTOM FIELDS IN A LIST
$response = $endpoint->searchByCustomFields('LIST-UNIQUE-ID', array(
'EMAIL' => '[email protected]'
));

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';

/*===================================================================================*/

// ADD SUBSCRIBER
$response = $endpoint->create('LIST-UNIQUE-ID', array(
'EMAIL' => '[email protected]', // the confirmation email will be sent!!! Use valid email address
Expand Down

0 comments on commit 96c6ea8

Please sign in to comment.