As you may have noticed or not, I implemented my very own Twitter status on the front page of my website several days ago. Reading up on the documentations over at the Twitter website, it seems that they set limits in which a web application can make a call to the API. Currently, I’m fetching and caching the data from the user/show method to a MySQL database. I guess this way is useful for caching only the most recent update. However, I feel that showing the latest one is not enough. I went back to the docs and saw the statuses/user_timeline method in which it displays the 20 most recent status. The major difference between these 2 is more status, and authentication. I’ll be changing my PHP Twitter class to retrieve data from the timeline instead, and from their it can also obtain the most recent status as well.

For those who are curious as to how I am parsing the data, I’m using PHP’s DOMDocument class.

Related posts: