drupal and communication
DESCRIPTION
Briefly about Drupal and communication. How can we produce data (other than HTML) and receive data. What layers we can use. We mention a lot of things such as XML-RPCTRANSCRIPT
Peter AratoFlex, Drupal, iOSPronovixhttp://itarato.blogspot.com/
@itarato
Drupal and communication
jQuery + Ajax
●easy access●same origin policy
cURL
●request from Drupal●plain text●submit data to 3rd party●highly customizable●parsing (XML)
JSON
●easy to use●flexible and concise format● lack of authentication
OAuth
https://dev.twitter.com/pages
/libraries
●authentication●resource management●secure
Drupal XML-RPC API
XML-RPC
http://www.xmlrpc.com/spec
●easy access●lack of authentication●http://MYSITE/xmlrpc.php
Flash object - JavaScript
Services module
Services V2 vs. V3
DEMO
●Servers●Resources
Servers
● XML-RPC● AMFPHP● REST● .. custom ...
AMFPHP
http://community.silexlabs.org/amfphp
/documentation/
RESThttp://en.wikipedia.org
/wiki/Representational_State_Transfer
SERVER DEMO
XML-RPC server implementation
Services (resources)
● System● Node● User● Comment● .. anything else ...
SERVICE DEMO
Custom service implementation
PYTHON ACCESS DEMO
FLASH ACCESS DEMO
OBJECTIVE-C DEMO
Accessibility
SWFObject
● Dynamic Flash embedding● Flash object variables
SWFAddress
● Deeplinking● History● State change notifications
Ajax Load
● http://projects.silexlabs.org/?/amfphp● http://api.drupal.org/api/drupal/developer--hooks--core.
php/function/hook_xmlrpc/6● http://drupal.org/project/services● http://drupal.org/node/109782 (Services docs)● http://www.dpdk.nl/opensource/drupalproxy-as-a-bridge-
between-flash-as3-and-drupal-via-amf (Drupal Services proxy by DPDK)
● http://www.dpdk.nl/opensource/source-code (Drupal Services proxy source)
● https://github.com/itarato/Kitten (Lightweight Drupal Services Flash library)
● https://github.com/workhabitinc/drupal-ios-sdk● http://vimeo.com/22635252 (DIOS Rest video)● https://github.com/eczarny/xmlrpc (iOS XMLRPC lib)
Thank you ^^Questions?