I'm using the recent tickets JSON feed in Zendesk with the following line of PHP:
$data = curlWrap("/tickets/recent.json", null, "GET");
When I use a foreach
function as below, I get the error message "Invalid argument supplied for foreach()".
foreach ( $data->tickets as $ticket )
What am I doing wrong?