SWX Twitter API for Flash and Flash Lite

I just documented the SWX Twitter API for Flash and Flash Lite on the official Twitter Development Talk group.

The SWX Twitter API gives you SWX, AMF, JSON and XML-RPC gateways to the full Twitter API as well as several custom API methods.

The easiest way to play around with the SWX Twitter API is to test it out online by using the PHP Service Browser that comes with SWX:

To see an example of a Twitter mashup created with SWX:

SWX Analyzer is a Flex 2 application that talks to SWX data SWFs that are in debug mode (dataHolderMovieClip.debug = true). It does this via LocalConnection so you can debug remote files as well as local ones.

The PHP Service Browser is a Flex 2 application that hits the SWX Twitter API using Amfphp and the AMF gateway.

One of the cool things about SWX is that it includes another open source project called Amfphp (Flash Remoting for PHP) and SWX services are compatible with Amfphp services. This means that, thanks to Amfphp, you can write a service (like the Twitter service) once and then consume it via SWX by hitting the SWX gateway, get it as AMF (Flash Remoting) by hitting the AMF gateway, or use JSON or XML-RPC.

For example, to get my last ten friend's updates as JSON, you can hit the JSON gateway that comes with SWX by hitting the following URL:

http://swxformat.org/php/json.php/Twitter.getNumFriendsUpdates/aral/1

Feel free to hit the SWX Twitter gateways on swxformat.org when creating your own Twitter mashups:

If you're interested in learning more about SWX, you can read an introduction to SWX, browse SWX documentation, and download the latest SWX Alpha.

Comments