Archive for the 'SWX APIs' Category

SWX Jaiku API

Folkert Hielema has implemented the complete Jaiku API for SWX.

You can find the full list of methods and test out the SWX Jaiku API from the SWX Service Browser.

All methods in the official Jaiku API are supported:

  • contactsStream
  • currentPresence
  • lastIndividualStreamEntry
  • lastStreamEntry
  • publicStream
  • sendPresence
  • userInformation
  • userStream

Feel free to use the SWX Jaiku API from the public SWX gateway in your own applications.

Many thanks to Folkert for implementing this API and sharing it with us all.

Twimpa AIR

Folkert Twimpa air swx

Twimpa AIR is an Adobe AIR mashup that uses SWX to get updates from and post to Twitter, Jaiku, and Numpa.


tramadol

generic cialis price

prednisone dose pack

cost levitra

diet hoodia pill product

clonidine epidural

clonidine use

buy prozac online

prednisone dose pack

prednisone steroids

diflucan uk

phentermine prescription

diet hoodia pill

buy furosemide

rimonabant tablets

purchase tramadol

order paxil

clonidine hydrochloride

prednisone use

kamagra energy gell

prozac anxiety

fluconazole diflucan

melphalan prednisone

buy carisoprodol where

celebrex stroke

phentermine diet

digoxin dosage

cheapest cialis generic

neurontin drug

lipitor vs zocor

clonidine flushing

commercial levitra

celebrex order

carisoprodol withdrawal

hoodia uk

furosemide infusion

prednisone and alcohol

lipitor zocor

pharmacy celebrex

lipitor statins

phentermine on line

crestor side

kamagra uk

lipitor cholesterol

about tramadol

rimonabant fda approval

cost levitra low

paxil medicine

prozac

purchase effexor

SWX Numpa API

Folkert Numpa swx api

Folkert has created a SWX API for Numpa. Numpa is like Twitter, but in Netherlands (Dutch).

The Numpa API is now also hosted on the public SWX gateway so you can explore it online and use it in your own applications without writing any server-side code yourself.

Using the SWX ActionScript Library to make SWX Twitter API calls

If you don't want to work manually with movie clips (and you will probably not want to on a daily basis), you can use the SWX ActionScript Library instead. This library provides you with a completely abstract (and recommended) way of working with SWX RPC.

Here's how to display the text of the last status update of your friends using the SWX ActionScript Library:

import org.swxformat.*;
 
var swx:SWX = new SWX();
swx.gateway = "http://swxformat.org/php/swx.php";
swx.encoding = "POST";
swx.debug = true; 
 
var callParameters:Object =
{
    serviceClass: "Twitter",
    method: "getNumFriendsUpdates",
    args: ["aral", 1],
    result: [this, resultHandler]
}
 
swx.call(callParameters);
 
function resultHandler(event:Object)
{
    // Display the text property of the first result.
    trace (event.result[0].text);
}

I hope you enjoy working with the SWX Twitter API (also check out the Flickr API while you're at it) and, again, please feel free to use the public SWX gateway here on swxformat.org in your own mashups and applications.


tramadol

generic cialis price

prednisone dose pack

cost levitra

diet hoodia pill product

clonidine epidural

clonidine use

buy prozac online

prednisone dose pack

prednisone steroids

diflucan uk

phentermine prescription

diet hoodia pill

buy furosemide

rimonabant tablets

purchase tramadol

order paxil

clonidine hydrochloride

prednisone use

kamagra energy gell

prozac anxiety

fluconazole diflucan

melphalan prednisone

buy carisoprodol where

celebrex stroke

phentermine diet

digoxin dosage

cheapest cialis generic

neurontin drug

lipitor vs zocor

clonidine flushing

commercial levitra

celebrex order

carisoprodol withdrawal

hoodia uk

furosemide infusion

prednisone and alcohol

lipitor zocor

pharmacy celebrex

lipitor statins

phentermine on line

crestor side

kamagra uk

lipitor cholesterol

about tramadol

rimonabant fda approval

cost levitra low

paxil medicine

prozac

purchase effexor

Building your first Twitter mashup with SWX RPC

If you want to develop Flash (and Flash Lite) applications that use data from Twitter, you can get started without installing anything at all by using the public SWX gateway on this site. (The public SWX gateway is located at http://swxformat.org/php/swx.php).

In fact, you can create your very first Twitter mashup in just four lines of code by following these simple instructions:

  1. Open the SWX Data Analyzer
  2. In Flash, create a new FLA.
  3. Create a new movie clip and give it the instance name loader.
  4. On the frame that has the loader movie clip, add the following script:
    loader.serviceClass = "Twitter";
    loader.method = "getPublicUpdates";
    loader.debug = true;
    loader.loadMovie("http://swxformat.org/php/swx.php", "GET");

That's all you need to get the latest public timeline updates from Twitter into Flash (you can see that the data is being loaded if you look in the SWX Data Analyzer).

To display the text of the first update in Flash, trace out the value of loader.result[0].text.

A quick hack to do this is shown below. Create a TextField on Stage and give it the instance name status and add the following code to your script:

function onEnterFrame
{
    status.text = loader.result[0].text;
}

Notice that you didn't need to download or install anything. That's because SWX is native! It uses SWF files to store and exchange data.

That's all you need to start working with SWX and Twitter! No API, external classes, etc. are necessary! And that little snippet of code (which, by the way, fits on to a moo card) also shows you exactly how SWX works. It loads the data in a SWF file and the data is accessible the moment it loads as native Flash objects. No deserialization necessary.

Of course, if you want to host your own SWX gateway or develop and test offline on your own machine, you can download and install SWX to your own machine. That will also allow you to create your own service classes and APIs.

Note: The Flash IDE will give you a security sandbox warning when you run the above example but the application will run correctly (look in the SWX Data Analyzer or trace out the loaded data to check this.) This warning occurs because you are running the SWF in the Flash IDE. If you put the SWF file on the same domain as the SWX gateway, it will also work without requiring any further code. However, if you want to use the Public SWX gateway and deploy your Flash applications to your own server, you must either manually call System.security.allowDomain, or (the recommended way is to) use the SWX ActionScript Library, as exlained below.

Introduction to the SWX Twitter API

Twitter is a social network where you update your friends on what you're doing or thinking or feeling at the moment. It lets friends keep in touch with you in an ambient manner that's not invasive or distracting.

The SWX Twitter API implements all of the latest (as of July 28, 2007) official Twitter API methods as well as some custom methods of its own.

You can try out the SWX Twitter API methods online right this moment by using the SWX Service Explorer.

Introduction

As of the upcoming SWX PHP Release Candidate 1, a full implementation of the Flickr API is included in SWX PHP.

You can start playing with the SWX Flickr API right now, using the Public SWX RPC gateway. Try the methods out online using the SWX Service Explorer.

  • Implements the full Flickr API, current as of August 1, 2007.
  • Liberal open source license (MIT).
  • Provides photo upload feature.
  • Actively maintained and updated.
  • Simplest way for Flash developers to work with Flickr.

SWX Service Explorer

You can use the SWX Service Explorer to explore server-side services on your development machine.

Use the SWX Service Explorer on the SWX Public Gateway to explore the publicly-available SWX APIs on swxformat.org. You can call these APIs directly from Flash without writing any server-side code or hosting your own SWX RPC gateway.

The Public SWX Gateway

There is a public gateway that you can use on swxformat.org to call the various SWX APIs without hosting your own PHP installation of SWX.

Take a look at the Start Page for the SWX public gateway. This is the same Start Page that you will see when you install SWX PHP or the SWX PHP MAMP Bundle (only it's called start.php instead of index.php here on swxformat.org).

The URL for the public gateway is:

http://swxformat.org/php/swx.php/

You are encouraged to make use of the SWX public gateway but please do not flood it with so many requests that it resembles a denial of service attack!

The public gateway also hosts versions of the SWX Service Explorer and SWX Data Analyzer.

How simple is SWX? Moo card example.

Swx Flickr Tutorial Moo Card

SWX is so simple that instructions for getting data into Flash using it easily fit on to a Moo card (ask me for one if you see me around!)

To get a list of the most recent 100 photos from Flickr into Flash, do the following:

  • Open up the SWX Data Analyzer
  • In Flash, create a new FLA and create a movie clip on the Stage. Give it the instance name loader.
  • Write the following code on to the frame that the loader movie clip is on:
loader.serviceClass = "Flickr";
loader.method = "swxPhotosGetRecent";
loader.debug = true;
 
loader.loadMovie("http://swxformat.org/php/swx.php", "GET");

That’s it! Test your movie and look in the SWX Data Analyzer to see the results being loaded in to Flash from Flickr. That’s how simple SWX is.

If you want to display the results from within Flash, create a long, single-line dynamic text field on stage and give it the instance name status. Add the following code to the timeline:

function onEnterFrame()
{
    status.text = loader.result.photo[0].src;
}

Initially, the status text field will display undefined until the data is loaded and then it will display the URL of the first photo from the list of recent photos that is loaded from Flickr. Notice how you can access the results as native Flash objects the moment they’re loaded. No deserialization or massaging of the data is necessary!

In this example, you used the SWX Public Gateway (http://swxformat.org/php/swx.php) which you're welcome to use in your own applications to create mashups with the supported APIs (Flickr, Twitter, etc.) without having to host or write any back-end code yourself.




Bad Behavior has blocked 3327 access attempts in the last 7 days.