7 May 2007

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.

Add Your Comment

Spam Protection by WP-SpamFree

SWX Twitter API for Flash and Flash Lite

  1. [...] You can read more about this on my blog. [...]

    SWX Twitter API for Flash and Flash Lite at SWX: SWF Data Exchange Format
  2. [...] The SWX Twitter API makes it easy for Flash developers to create Twitter mashups. You can play with the API methods in the online Service Browser to get a feel for it before you even start building your Flash application. Also see this more detailed post on the SWX Twitter API that I blogged earlier. [...]

    Flash developers don’t know the web. at Aral Balkan
  3. [...] The swxformat.org web site is now up and running on its own dedicated server. The public SWX gateway and the SWX Twitter API is also functional again after some downtime yesterday. [...]

    Web site migration complete! at SWX: SWF Data Exchange Format
  4. rediscovering fun with swx…

    After coming home from a week in the France Provence i keep on thinking…
    Why not use swx for all data that has to come and go from within flash. It’s certainly a clean and really fast way of getting things done, with a minimal amount of eff…

    Swapdepths