QueTwo's Blog

thouoghts on telecommunications, programming, education and technology

A Simple Twitter Client in AIR


In our continued examples, I was asked to have an example of a simple Twitter Client.  Twitter, for those of you who do not know of the service, is a ‘micro-blogging’ service which allows users to post short, 140 character messages. Your messages get aggregated with by your followers, and mixed in with anybody else they follow.  If you want to see my ‘Twitter Feed’, you can go to http://twitter.com/quetwo .  If you would like to see how to work with the Twitter API, you can visit their WIKI.

This example is an AIR app, so, unfortunately, you will not be able to view it live in the browser.  You can download the final .AIR file (and install on your PC) HERE. 

A link to the source code, and the source code download is available here

This code shows how to connect to RESTful services and deal with XML data.  In the example, I have implemented two of the many APIs available — the ‘get friends timeline’, which is used to get your friend’s tweets. and one to update your own status.  The implementation is very crude, but it is well commented.

This example uses the “Fair Reader” account for twitter.  If you wish to use your own account, you need to edit the source code and put it in. 

if you have any questions or comments about the implementation, please let me know in the comments 🙂


2 responses to “A Simple Twitter Client in AIR

  1. Erik Ramalho August 9, 2009 at 12:37 am

    Hi Nick Kwiatkowski,

    Changed your project to work as a flex application. The project is working but when I first try to use the application, it pop-ups the browser login/pass authentication. After I enter the credentials the app start working normally.

    It seems that the Twitter Client is not using the login/password which the code provides…

    Any ideas?

    • quetwo August 9, 2009 at 12:43 am

      The login and password in the code need to be changed to your own login and password. It should be in the form of login:password within the code itself.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: