Small Actionscript library for handling Drupal - Services communication
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with itarato:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
com/kitten
README

README

Kitten - Drupal Communication Library

Download the compiled library:
http://dl.dropbox.com/u/2629592/KittenFlexLib.swc

// Creation
var c:Connection = new Connection('http://example.org/', 'amfphp/gateway');


// Authentication
c.isSessionAuthentication = true;
c.isSessionAuthentication = false;

c.isAPIKeyAuthentication = true;
c.isAPIKeyAuthentication = false;
c.setAPIKey(API_KEY, API_DOMAIN);


// Attach events
c.addEventListener(ConnectionEvent.CONNECTION_IS_READY, connectionIsReadyCallback);
c.addEventListener(ConnectionEvent.CONNECTION_IS_FAILED, connectionHasFailedCallback);


// Connect
c.connect();


// Call a remote method
c.call('method.function', callbackForResult, param1, param2);