Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itarato/Kitten

Small Actionscript library for handling Drupal - Services communication
https://github.com/itarato/Kitten

Last synced: 3 months ago
JSON representation

Small Actionscript library for handling Drupal - Services communication

Awesome Lists containing this project

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);