Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OpenSocial 2.0 - Viva la Open App Revolution

OpenSocial 2.0 - Viva la Open App Revolution

Talk about OpenSocial 2.0 at Confoo 2012

Bastian Hofmann

March 02, 2012

Transcript

112 slides
  1. var html="<ul>"; for (var i=0; i < viewers.length; i++) {

    html += "<li>" + viewers[i].displayName + "</li>"; } html += "<ul>"; document.getElementById("div").innerHTML = html; Where is the error?
  2. GET /rest/people/34KJDCSKJN2HHF0DW20394/@self? fields=name,gender&format=xml HTTP/1.1 HOST api.example.org Authorization: hh5s93j4hdidpola HTTP/1.1 200

    OK Content-Type: text/xml <response xmlns="http://ns.opensocial.org/ 2008/opensocial"> <person> <id>34KJDCSKJN2HHF0DW20394</id> <name> <unstructured>Jane Doe</unstructured> </name> <gender>female</gender> </person> </response>
  3. twitter.com HTTP POST Connect with Twitter HTTP GET Consumer Key

    Redirect URI Signature (Consumer Secret) lanyrd.com
  4. HTTP GET HTTP GET Consumer Key Verifier Signature (Consumer &

    Request Token Secret) twitter.com lanyrd.com
  5. lanyrd.com twitter.com Pre Registration of Client at Twitter: - Shared

    Client ID - Shared Client Secret - Redirect URI
  6. From: [email protected] To: [email protected] Subject: Social Network: Mary Has Commented

    On Your Status MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="XXXXboundary text" --XXXXboundary text Content-Type: text/html <html> <!-- HTML representation here --> </html> --XXXXboundary text Content-Type: application/embed+json { "gadget" : "http://www.socialnetwork.com/embedded/ commentgadget.xml", "context" : 123 }
  7. <Module> <ModulePrefs title="Sample VOIP"> <Optional feature="actions"> <Param name="action-contributions"> <![CDATA[ <action

    id="org.samplevoip.callbyperson" dataObject="opensocial.Person" label="Call using VOIP Phone" view="DialByPerson" icon="http://ww.samplervoip.org/ phone.gif" /> <action id="org.samplervoip.navLink" path="container/ navigationLinks" label="Phone" /> ]]> </Param> </Optional> </ModulePrefs>
  8. <Content type="html"> <![CDATA[ <script> // Bind javascript function to action

    ID function mycallback{ ... } var myaction = { id: "org.samplevoip.callbyperson", callback: mycallback } container.actions.updateAction(myaction); </script> ]]> </Content> </Module>
  9. <Optional feature="opensearch"> <Param name="description"> <![CDATA[ <OpenSearchDescription xmlns="http://a9.com/-/spec/ opensearch/1.1/"> <ShortName>Example Search</ShortName>

    <Description>Realtime Example Search</Description> <Url type="application/atom+xml" method="get" template="http://search.example.com/search.atom? q={searchTerms}"/> <Image width="16" height="16">http://search.example.com/ favicon.png</Image> <InputEncoding>UTF-8</InputEncoding> <SearchForm>http://search.example.com/</SearchForm> </OpenSearchDescription> ]]> </Param> </Optional>

More Decks by Bastian Hofmann

Other Decks in Programming