Services Apps Iand Flex Applications

1,460 views
1,419 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,460
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
32
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Services Apps Iand Flex Applications

  1. 1. Services API and Flex Applications By:  sumitk http://sumitk.net
  2. 3. Services <ul><ul><li>An API which helps integrating external applications with Drupal </li></ul></ul><ul><ul><li>Service callbacks may be used with multiple interfaces like XMLRPC, SOAP, REST, AMFPHP. </li></ul></ul>
  3. 4. Servers for Services API <ul><ul><li>XMLRPC (in core) </li></ul></ul><ul><ul><li>REST </li></ul></ul><ul><ul><li>SOAP </li></ul></ul><ul><ul><li>AMFPHP </li></ul></ul>
  4. 5. Services included ServicesAPI <ul><ul><li>node.load(node_load) </li></ul></ul><ul><ul><li>node.save </li></ul></ul><ul><ul><li>node.delete(means all node services) </li></ul></ul><ul><ul><li>file service </li></ul></ul><ul><ul><li>menu service </li></ul></ul><ul><ul><li>system service </li></ul></ul><ul><ul><li>taxonomy service </li></ul></ul><ul><ul><li>user service </li></ul></ul><ul><ul><li>views service(I know everyone is exited about it ;) you can get, exportOR import a view) </li></ul></ul>
  5. 6.  
  6. 7. Authentication layer over ServicesAPI <ul><ul><li>Keys method(got to register app. with a key and then include that key in service request) </li></ul></ul><ul><ul><li>SessionID method (use user’s sessionID for authentication) </li></ul></ul><ul><ul><li>OAuth method – NOT in core right now but patch is ready ;) we can use it any time :) </li></ul></ul>
  7. 8. HOW call looks like $change = array (                 &quot;nid&quot; => 14 ,                                     //required for update                 &quot;revision&quot; => time () ,                   //required for update                 &quot;changed&quot; => time () ,                     //required for update                 &quot;type&quot; => &quot;page&quot; ,                               //required                 &quot;uid&quot; => 1 ,                                     //required both uid and name to associate to a user                 &quot;name&quot; => &quot;user1&quot; ,                               //required both uid and name to associate to a user                 &quot;title&quot; => &quot;TEST NODE.SAVE TITLE **UPDATES**&quot; ,                 &quot;status&quot; => 1 ,                                  // = published                 &quot;body&quot; => &quot;this is a body **UPDATES**&quot; ,         ) ; print_nice ( $change ) ; $m = new xmlrpcmsg ( 'node.save' ,                 array (                         php_xmlrpc_encode ( $sessid ) ,                         php_xmlrpc_encode ( $change )                         )                 ) ; $c = new xmlrpc_client ( &quot;?q=services/xmlrpc&quot; , &quot;localhost&quot; , 80 ) ;
  8. 9. AMFPHP : server to connect ServicesAPI and Adobe Flex/Flash  
  9. 10. What is AMFPHP?? AMFPHP is a free open-source PHP implementation of the Action Message Format(AMF). It acts as a binary gateway to pass your data through & send it to FLEX/FLASH in an insane speed. So this project actually connects our drupal and flex application.
  10. 11.    
  11. 12.    
  12. 20.     SO when we are MAD!!
  13. 21. End Have a nice weekend

×