Closed degive closed 2 years ago
This is a more complete example.
try
{
$contactListsAPI = new \PHPFUI\ConstantContact\V3\ContactLists($client);
$response = $contactListsAPI->get();
if (! $contactListsAPI->success())
{
WriteDebug($contactListsAPI->getStatusCode(), $contactListsAPI->getLastError());
}
foreach ($response['lists'] ?? [] as $row)
{
// Do something with $row
}
}
catch (\Throwable $e)
{
WriteDebug($e);
}
Thank you. This works!
I followed your example, but when I do $listEndPoint = new \PHPFUI\ConstantContact\V3\ContactLists($client);
Nothing is returned, yet I have lots of lists.
Any idea why?
Thank you.
Michel