getConf('actickets.url'), $actickets_plugin->getConf('actickets.token') ); $tickets = array(); foreach ($_REQUEST['tickets'] as $ticket) { $tickets[] = $acclient->get('/projects/'.$ticket['projectId'].'/tickets/'.$ticket['ticketId']); } $json = new JSON(); die($json->encode($tickets));