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
Socializing your feed with Twitter 34 131
What's all the hubbub about PubSubHubbub? 70 38
"Afternoon, Frank." "Hey howdy, George." 36 42
AdSense policy clarification on using AdSense for feeds and AdSense for content 37 37
AdSense for feeds now available directly in Blogger 35 37
Category Filtering beta now available for AdSense for feeds English-language ads 35 36
An important reminder for our MyBrand users 34 37
FeedBurner Terms of Service Update 34 36
Happiness is more subject in your subject line. 33 36
Redirecting your feed to maximize revenue potential 30 38