Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/itarato/Kitten
- Owner: itarato
- Created: 2011-02-12T17:30:01.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-05-19T08:34:43.000Z (over 13 years ago)
- Last Synced: 2024-06-24T01:40:49.549Z (5 months ago)
- Language: ActionScript
- Homepage: http://itarato.blogspot.com/2011/02/kitten-actionsript-based-drupal.html
- Size: 96.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-actionscript-sorted - Kitten - Small Actionscript library for handling Drupal - Services communication (Unsorted / Other API)
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);