With my pet project seemingly taking off so well, I’ve been looking for ways to enhance the website, advertise more, etc. One idea I had was to have a counter of some sort showing the total number of downloads for each episode. Feedburner already has something setup where you can show the number of subscribers as of yesterday. I went ahead and put that on the “home page”, but would still like to have some counters for downloads.
The Awareness API, or AwAPI, is something you can activate within your Feedburner control panel under the Publicize tab. This allows 3rd party applications to access your data. If that doesn’t make any sense another way to put it is that you can create or use a counter that shows the total number of downloads. Essentially it allows me to pull out any of the data it collects for the RSS feed or any of the episodes. This includes downloads, hits, visits and subscribers by date and item.
If you want to use this API it isn’t just all cake and ice cream. You need to know what you’re doing. The three main calls for this API are GetFeedData, GetItemData and GetResyndicationData. I want to use GetItemData to find out how many times each item, or episode, has been downloaded. I could even get total downloads with this. When you use one of these API calls it returns data in XML format. You then have to translate or parse that data to use it in whatever way you want.
You can usually make API calls with several different languages. PHP is what I’m going to use because it’s what I’m more familiar with and I think it’s easier. Now even though I was a “programmer” in college, that doesn’t mean I’m a Bill Gates or anything. I wasn’t exactly top of my class, but I think I have a pretty good understanding of theory and I’m able to figure almost anything out as long as i have some documentation, examples and a buddy or two to ask a couple questions.
Yesterday I spent several hours messing around with things. Essentially I need to create some PHP code to make the API call, translate the data into something usable and then output my data. For starters I installed the runPHP plugin on my Joomla! site. Without that plugin, it doesn’t know how to translate the PHP code and thinks it’s a combination of plain text and HTML. I then found an example somebody else made and tried to figure it out. The first snag I ran into was I needed to download his feedburner class and include it in the PHP code I was testing. After playing around with it for a while I eventually realized the feedburner class was returning empty variables to me. Which is why I couldn’t get the example to output any numbers.
My next step was to try and get some help on the Feedburner forums. People are pretty helpful in here, but they’re definitely not going to hold your hand with the APIs. I asked a few specific questions in a stats thread and got some generic answers. I then made a new post in the developer’s thread after my three hours of fun. Right now I need to either figure out why the example I downloaded isn’t working, find a new class that parses the data returned, or find a good XML parser in PHP and tweak it for the data I’m using.
At the moment I’m in no shape to just sit down and create something. It’s been so long since I’ve been coding somewhat regularly (about 4 years) and I’ve never done anything similar to this before. I’ll need to do some more research and a lot of testing. If I really put the time and effort into this I could possibly even submit what I create to Feedburner for others to use or just post it on my own web space. If I end up sharing it to the world I’ll have to make sure I do some hefty testing and debugging. I don’t know how far I’ll go with this, but it sure was fun to get back into that type of thinking again. It’s like riding a bike I guess.
If anybody has any tips or ideas I’d love to hear them. This month is pretty nuts with work and then I’m on vacation for the first part of September. I’m also pretty busy with podcasting so this is a when-I-get-around-to-it kind of project.
Recent Comments