Addicted to Feedburner by John Nunemaker

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

Top Ten Items Yesterday
Item Hits Clicks
Enabling social sharing with FeedFlare 30 67
What's all the hubbub about PubSubHubbub? 53 42
Socializing your feed with Twitter 28 23
A small yet noteworthy change to our item stats link serving 30 18
AdSense for feeds now available directly in Blogger 29 18
"Afternoon, Frank." "Hey howdy, George." 27 18
Intro to Feed Placements 26 18
Redirecting your feed to maximize revenue potential 26 18
Now Available: Moving your FeedBurner account to Google using AdSense 27 17
AdSense policy clarification on using AdSense for feeds and AdSense for content 28 14