Example: Get Item Data
Code Sample for Yesterday's Top Ten Items
<?php
$fb =& new feedburner('burnthisrss2');
$result = $fb->getItemData();
if ($fb->isError()) {
echo $fb->getErrorMsg();
} else {
$items = $result['entries'][1]['items'];
if (count($items) > 0) {
echo '<h2>Example Output</h2>';
echo '<table cellspacing="0" style="width:300px;">
<caption>Top Ten Items Yesterday</caption>
<thead>
<th>Item</th>
<th>Hits</th>
<th>Clicks</th>
</thead>
<tbody>';
for($i=1; $i<=10; $i++) {
echo '<tr>
<td><a href="' . $items[$i]['url'] . '">' . $items[$i]['title'] . '</a></td>
<td>' . $items[$i]['itemviews'] . '</td>
<td>' . $items[$i]['clickthroughs'] . '</td>
</tr>';
}
echo '</tbody>
</table>';
}
}
?>
Example Output