SlideShare ist ein Scribd-Unternehmen logo
International PHP Conference
17. Nov. 2009 | Karlsruhe
Frank Ruske
F ra nk R us k e



❙> J ahre Erfahrung in der Softwareentwicklung
  10

❙Seit März 2009 Mitarbeiter bei Mayflower

❙Autor für das PHP-Magazin




                                                  OpenSocial
                                                 ©MAYFLOWER GmbH 2009 2
Was ist das Objekt?
Was ist das Ziel?
Wie kann das Objekt
 geshared werden?
4.294.967.296

340.282.366.920.938.463.463.374.607.431.768.211.456

      665.570.793.348.866.943.898.599 pro Quadratkilometer
         ca. 667.000.000.000.000.000 pro Quadratmillimeter
Was ist die Belohnung
für eine Anmeldung?
Business Model?
Wie können wir Objekte
  sozialisieren ohne ein
weiteres Social Network zu
        erstellen?
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
a common open  set of API's
           for building
    social applications
         across multiple sites
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
Gadget (XML)
 Clientseitig: J avaScript, HTML
             und CSS

            Container
Serverseitig: RESTfull API, J SON
         RPC (optional)
Grundfunktionen
    People,
   Friends,
   Activities,
  Persistence
Benutzergruppen
    Viewer
    Owner
    Friend
Vorstellung Open Social Ipc 2009
Ope nS oc ia l a pplic a tion „He llo w orld“




http://www.frank-ruske.com/ipc/hello_world.xml
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
http://www.frank-ruske.com/ipc/show_friends_final.xml
Vorstellung Open Social Ipc 2009
Vorstellung Open Social Ipc 2009
http://www.frank-ruske.com/ipc/activity.xml
Vorstellung Open Social Ipc 2009
http://www.frank-ruske.com/ipc/save_data.xml
gadgets.io.makeRequest()
Apache Shindig

Inc uba tor s e it Nove mbe r 2007
Vorstellung Open Social Ipc 2009
http://shindig.local/gadgets/files/samplecontainer/samplecontainer.html
http://shindig.local/gadgets/files/samplecontainer/examples/SocialHelloWorld.xml
http://www.frank-ruske.com/ipc/activity.xml
Vorstellung Open Social Ipc 2009
R E S T / P E OP L E
/people/{guid}/@all
    Alle Leute mit Verbindungen zum User {guid}

/people/{guid}/@friends
    Alle Freunde vom Benutzer {guid}

/people/{guid}/@s elf
    Profil vom Benutzer {guid}

/people/@me/@s elf
    Profil des Viewers
Freunde von „J ane Doe“




http://shindig.local/social/rest/people/jane.doe/@friends
R E S T / AC T IV IT IE S
/activities /{guid}/@s elf
     Liste mit Aktivitäten des User {guid}

/activities /{guid}/@friends
     Liste mit Aktivitäten der Freunde des User {guid}
Aktivität von „John.doe“




http://shindig.local/social/rest/activities/john.doe/@self
R E S T / P E R S IS T E NC E
/appdata/{guid}/@s elf/{appid}
    Alle App spezifischen Daten für den User {guid}

/appdata/{guid}/@friends /{appid}
    Alle App spezifischen Daten für die Freunde des Users
R E S T / Additiona l
               Pa ra me te rs
/format={format}
    Format der Rückgabe (ATOM, J SON, XML)

/fields ={field+}
     Die Felder die zurück gegeben werden sollen

/s tartPage={s tartPage}
      Paginator

/count={count}
    Paginator – Anzahl von Items
Additional Parameters




http://shindig.local/social/rest/activities/john.doe/@self?format=XML
C onta ine r imple me ntie re n:

  1.) P HP Inte rfa c e s imple me ntie re n:
  ActivityService, PersonService, AppDataService,
 MessagesService, AlbumService, MediaItemService

      2.) Apache S hindig konfigurieren
1.) P HP Inte rfa c e s imple me ntie re n:
      class JsonDbOpensocialService implements ActivityService, PersonService,
       AppDataService, MessagesService, AlbumService, MediaItemService {...}




http://svn.apache.org/repos/asf/incubator/shindig/trunk/php/src/social/sample/J sonDbOpensocialService.php
2.) S hindig konfigurie re n




http://svn.apache.org/repos/asf/incubator/shindig/trunk/php/config/container.php
Pa rtuza
OpenS ocial / S ocial Network Beis piels eite

    Kommuniziert mit Apache S hindig

           Implementiert in PHP
1.) PHP Interfaces implementieren:
   class PartuzaService implements ActivityService, PersonService,
AppDataService, MessagesService, AlbumService, MediaItemService {...}




   http://code.google.com/p/partuza/source/browse/trunk/Shindig/PartuzaService.php
2.) Shindig konfigurieren




http://svn.apache.org/repos/asf/incubator/shindig/trunk/php/config/container.php
Links und Referenzen
         unter

www.frank-ruske.com/ipc09
V ie le n Da nk für Ihre Aufme rk s a mke it!


R e fe re nt
Frank Ruske
Mayflower GmbH
Pleichertorstr. 2
97070 Würzburg
+ (931) 35 9 65 - 0
  49
frank.ruske@mayflower.de

Weitere ähnliche Inhalte

PDF
OpenSocial und Apache Shindig
PDF
Idea del Dia 19/02/2014
PDF
1 Q 2008 Consolidated Results
PDF
Trading Derivados 19/02/2014
PDF
Llibre de les famílies. la vida dels colors
PDF
Social Network Application Programming
PDF
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
PDF
Ist GraphQL das bessere REST
OpenSocial und Apache Shindig
Idea del Dia 19/02/2014
1 Q 2008 Consolidated Results
Trading Derivados 19/02/2014
Llibre de les famílies. la vida dels colors
Social Network Application Programming
DACHNUG50 Domino REST API - Konzepte und Hintergruende.pdf
Ist GraphQL das bessere REST
Anzeige

Vorstellung Open Social Ipc 2009