Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

OpenSocial RESTful API

1,693 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

OpenSocial RESTful API

  1. 1. OpenSocial 0.8 RESTful API (yes, finally) May 14, 2008.  (images under Createive Commons by-nc license .)
  2. 2. Gadgets environment is comfortable but limited
  3. 3. The RESTful API opens up new possibilities
  4. 4. Discovery: Finding Endpoints .
  5. 5. XRDS-Simple Discovery Document <ul><li><XRDS xmlns=&quot;xri://$xrds&quot;> <XRD xmlns:...> <Type>xri://$xrds*simple</Type> <Service> <Type> http://ns.opensocial.org/people/0.8 </Type> <os:URI-Template> http://api.example.org/people/{guid}/{selector}{-prefix|/|pid} </os:URI-Template>...          </li></ul>
  6. 6. Authentication + Authorization:  OAuth
  7. 7. Data Types: People, Activities, AppData, Groups
  8. 8. Data Formats: JSON, Atom XML
  9. 9. Person (JSON) <ul><li>{ </li></ul><ul><li>  &quot;id&quot; :&quot; example.org: 34KJDCSKJH20394 &quot;, </li></ul><ul><li>  &quot;name&quot; :  </li></ul><ul><li>     {&quot;unstructured&quot; : &quot; Jane Doe &quot;}, </li></ul><ul><li>  &quot;gender&quot; :  </li></ul><ul><li>     {&quot;displayvalue&quot; : &quot; 女性 &quot;,  </li></ul><ul><li>     &quot;key&quot; : &quot; FEMALE &quot; </li></ul><ul><li>     } </li></ul><ul><li>} </li></ul>
  10. 10. Person (Atom) <ul><li><entry xmlns=&quot;http://www.w3.org/2005/Atom&quot;>   <content type=&quot;application/xml&quot;>     <person xmlns=...>       <name>         <unstructured> Jane Doe </unstructured>       </name>       <gender key=&quot; FEMALE &quot;> 女性 </gender>     </person>   </content>   <title/>   <updated>2003-12-13T18:30:02Z</updated>   <author/>    <id> urn:guid: example.org:34KJDCSKJN2HHF0DW20394 </id> </entry> </li></ul>
  11. 11. Messaging
  12. 12. Concurrency
  13. 13. Batching
  14. 14. Next!
  15. 15. More Info http://docs.google.com/Doc?docid=dc43mmng_2g6k9qzfb&hl=en Questions?  Contact me: John Panzer [email_address] http://abstractioneer.org =john.panzer

×