Services Apps Iand Flex Applications

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Services Apps Iand Flex Applications - Presentation Transcript

    1. Services API and Flex Applications By:  sumitk http://sumitk.net
    2.  
    3. Services
        • An API which helps integrating external applications with Drupal
        • Service callbacks may be used with multiple interfaces like XMLRPC, SOAP, REST, AMFPHP.
    4. Servers for Services API
        • XMLRPC (in core)
        • REST
        • SOAP
        • AMFPHP
    5. Services included ServicesAPI
        • node.load(node_load)
        • node.save
        • node.delete(means all node services)
        • file service
        • menu service
        • system service
        • taxonomy service
        • user service
        • views service(I know everyone is exited about it ;) you can get, exportOR import a view)
    6.  
    7. Authentication layer over ServicesAPI
        • Keys method(got to register app. with a key and then include that key in service request)
        • SessionID method (use user’s sessionID for authentication)
        • OAuth method – NOT in core right now but patch is ready ;) we can use it any time :)
    8. HOW call looks like $change = array (                 "nid" => 14 ,                                     //required for update                 "revision" => time () ,                   //required for update                 "changed" => time () ,                     //required for update                 "type" => "page" ,                               //required                 "uid" => 1 ,                                     //required both uid and name to associate to a user                 "name" => "user1" ,                               //required both uid and name to associate to a user                 "title" => "TEST NODE.SAVE TITLE **UPDATES**" ,                 "status" => 1 ,                                  // = published                 "body" => "this is a body **UPDATES**" ,         ) ; print_nice ( $change ) ; $m = new xmlrpcmsg ( 'node.save' ,                 array (                         php_xmlrpc_encode ( $sessid ) ,                         php_xmlrpc_encode ( $change )                         )                 ) ; $c = new xmlrpc_client ( "?q=services/xmlrpc" , "localhost" , 80 ) ;
    9. AMFPHP : server to connect ServicesAPI and Adobe Flex/Flash  
    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.
    11.    
    12.    
    13.  
    14.  
    15.  
    16.  
    17.  
    18.  
    19.  
    20.     SO when we are MAD!!
    21. End Have a nice weekend
    SlideShare Zeitgeist 2009

    + sumitk01sumitk01 Nominate

    custom

    615 views, 1 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 615
      • 613 on SlideShare
      • 2 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 12
    Most viewed embeds
    • 2 views on http://dsi.devseed.org

    more

    All embeds
    • 2 views on http://dsi.devseed.org

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories