TwitterPatter Update: Making progress, accessing twitter timelines

February 11, 2008

I’m sure you’ve heard this before, but I have Good news and I have Bad news.

First the bad news. For the last couple weeks, I have been scratching my head over the fact that twitter authentication failed and returned a “401 unauthorized” HTTP response any time I used TwitterPatter to retrieve the “user_timeline” from the twitter service.

I wrote code and rewrote it again trying to figure out how to get this to work. No matter what I tried, I just couldn’t seem to do it. Now after two weeks of failure (keep in mind that I do this mostly over the weekends and at night with what little free time I have to spare) , I was a bit frustrated. After all, that could have been quality time well spent pwning COD4 noobs (call of duty 4). At this point I decided to try a few of the other status time lines that require authentication to see if I could uncover anything. Here is where the Good news starts.

What I discovered was that apparently all the other time lines that require authentication are working fine using the same piece of code that fails for the user time line. I have no idea why this is happening and to be honest, it doesn’t make much sense to me. The credentials are all the same, the HTTP request is the same. But for some reason, the user time line just will NOT authenticate. Anyway, back to the good news. At this point I have been able to successfully retrieve the following time lines as an authenticated twitter account user.

  • friends_timeline : Returns the 20 most recent statuses posted in the last 24 hours from the authenticating user and that user’s friends. It’s also possible to request another user’s friends_timeline via the id parameter below.
  • friends : Returns up to 100 of the authenticating user’s friends who have most recently updated, each with current status inline. It’s also possible to request another user’s recent friends list via the id parameter below.
  • followers : Returns the authenticating user’s followers, each with current status inline

Next step is to format the data that is returned for display in the application window and apply the interactive functions to each message. I also need to find out why that user_timeline authentication fails.

If anyone has any ideas on what is going wrong with that, please leave a comment.

Happy twittering
Ed (@pixel8r)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: