PHP Addicted To Feedburner API Class

September 12th, 2005

I was working on a PHP Flickr API Class (now finished, just working on examples and documentation) when Mint was released. I racked my brain to determine what kind of pepper I could develop when it hit me. I use Feedburner for my RSS feed thus I would have to check stats in two places–Mint for website and Feedburner for RSS. I knew that Feedburner had an Awareness API which allows you to get stats on a particular feedburner account. I also knew that both Feedburner and Flickr have REST web services, so I adapted the Flickr class to Feedburner, wrote a tiny pepper for Mint and my need was filled–all my stats in one place. Granted anyone who has downloaded my Feedburner Stats Pepper could grab the class from there and use it, but I thought I would offically release it for anyone interested who hasn’t thought of that.

The class is paired with a CURL class coded by Dick Monroe. It does not require CURL, but uses it as the default method for hitting Feedburner. On to the juicy stuff.

Examples

The class has two methods that retrieve data from Feedburner–getFeedData() and getItemData(). Each takes an array of options and returns an array stuffed full of the feed’s data. To view all the options for the methods, you can check out Feedburner’s API documentation. I have prepared a sample page with code snippets and example outputs for both of the methods. The sample page goes into a bit more detail. As always, if you have any questions or problems, let me know in the comments.

Download

Donate

Also, if you like this class, feel free to make a donation using the button below. Donations inspire me to add features and improvements and create more free handy tools.

Like It, Donate

8 Responses to “PHP Addicted To Feedburner API Class”

  1. Excellent job! This is now on my todo to play with, when I get the chance. Looks great and very simple tp use.

  2. It is simple, but I think I can make it even easier. If you read the Feedburner API Docs, this class is really easy to use. If not, then you might wonder what parameters can be used in the array that gets passed to both methods. My plans for the future are to add in some methods that make it more easy to use without even taking a gander at the Feedburner API Docs.

  3. Thought it might be of interest to you, I did some work on the Feedburner Mgmt API, the PHP code is availabe here.

  4. Thanks for the code! I struggled with this by my own and could not make it work, then I searched the Web for “php feedburner api” and found your most excellent code work.

    Thanks!

  5. @aleksanderson - glad you like it.

  6. Great work ! thank you

  7. odds of getting ankylosis spondylitis from mother…

    nodding wooed?snore!…

  8. Just to let you all know, we have developed a basic subscriber counter with change indicator based on the Addicted to FeedBurner API Class. It can be found at, http://www.opencrypt.com/blog.php?a=24

Leave a Reply

About This Site

Addicted to New is the personal website of John Nunemaker (Noo-neh-maker), a Web Developer enamored of Ruby on Rails and a wide-eyed fan of all things new and cool.