drupal and communication

58
Peter Arato Flex, Drupal, iOS Pronovix http://itarato.blogspot.com/

Upload: peter-arato

Post on 08-May-2015

1.476 views

Category:

Technology


0 download

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-RPC

TRANSCRIPT

Page 1: Drupal and communication

Peter AratoFlex, Drupal, iOSPronovixhttp://itarato.blogspot.com/

Page 2: Drupal and communication

@itarato

Page 3: Drupal and communication

Drupal and communication

Page 4: Drupal and communication
Page 5: Drupal and communication
Page 6: Drupal and communication

jQuery + Ajax

Page 7: Drupal and communication
Page 8: Drupal and communication

●easy access●same origin policy

Page 9: Drupal and communication

cURL

Page 10: Drupal and communication
Page 11: Drupal and communication

●request from Drupal●plain text●submit data to 3rd party●highly customizable●parsing (XML)

Page 12: Drupal and communication

JSON

Page 13: Drupal and communication

●easy to use●flexible and concise format● lack of authentication

Page 14: Drupal and communication

OAuth

Page 15: Drupal and communication
Page 16: Drupal and communication
Page 17: Drupal and communication
Page 18: Drupal and communication
Page 19: Drupal and communication
Page 20: Drupal and communication
Page 21: Drupal and communication
Page 22: Drupal and communication
Page 23: Drupal and communication
Page 24: Drupal and communication
Page 25: Drupal and communication

https://dev.twitter.com/pages

/libraries

Page 26: Drupal and communication

●authentication●resource management●secure

Page 27: Drupal and communication

Drupal XML-RPC API

Page 28: Drupal and communication

XML-RPC

http://www.xmlrpc.com/spec

Page 29: Drupal and communication
Page 30: Drupal and communication

●easy access●lack of authentication●http://MYSITE/xmlrpc.php

Page 31: Drupal and communication

Flash object - JavaScript

Page 32: Drupal and communication
Page 33: Drupal and communication
Page 34: Drupal and communication

Services module

Page 35: Drupal and communication

Services V2 vs. V3

DEMO

Page 36: Drupal and communication

●Servers●Resources

Page 37: Drupal and communication

Servers

● XML-RPC● AMFPHP● REST● .. custom ...

Page 38: Drupal and communication

AMFPHP

http://community.silexlabs.org/amfphp

/documentation/

Page 39: Drupal and communication

RESThttp://en.wikipedia.org

/wiki/Representational_State_Transfer

Page 40: Drupal and communication

SERVER DEMO

XML-RPC server implementation

Page 41: Drupal and communication

Services (resources)

● System● Node● User● Comment● .. anything else ...

Page 42: Drupal and communication

SERVICE DEMO

Custom service implementation

Page 43: Drupal and communication

PYTHON ACCESS DEMO

Page 44: Drupal and communication

FLASH ACCESS DEMO

Page 45: Drupal and communication

OBJECTIVE-C DEMO

Page 46: Drupal and communication

Accessibility

Page 47: Drupal and communication
Page 48: Drupal and communication

SWFObject

● Dynamic Flash embedding● Flash object variables

Page 49: Drupal and communication

SWFAddress

● Deeplinking● History● State change notifications

Page 50: Drupal and communication

Ajax Load

Page 51: Drupal and communication
Page 52: Drupal and communication
Page 53: Drupal and communication
Page 54: Drupal and communication
Page 55: Drupal and communication
Page 56: Drupal and communication
Page 57: Drupal and communication

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

Page 58: Drupal and communication

Thank you ^^Questions?