opensocial restful api

15
OpenSocial 0.8 RESTful API (yes, finally) May 14, 2008. (images under Createive Commons by-nc license .)

Upload: rohit-ghatol

Post on 13-Jan-2015

998 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: OpenSocial RESTful API

OpenSocial 0.8 RESTful API

(yes, finally)

May 14, 2008.  (images under Createive Commons by-nc license.)

Page 2: OpenSocial RESTful API

Gadgets environment is comfortable but limited

Page 3: OpenSocial RESTful API

The RESTful API opens up new possibilities

Page 4: OpenSocial RESTful API

Discovery: Finding Endpoints.

Page 5: OpenSocial RESTful API

XRDS-Simple Discovery Document

<XRDS xmlns="xri://$xrds"><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>...        

Page 6: OpenSocial RESTful API

Authentication + Authorization: OAuth

Page 7: OpenSocial RESTful API

Data Types:People, Activities, AppData, Groups

Page 8: OpenSocial RESTful API

Data Formats:JSON, Atom XML

Page 9: OpenSocial RESTful API

Person (JSON)

{  "id" :"example.org:34KJDCSKJH20394",  "name" :     {"unstructured" : "Jane Doe"},  "gender" :     {"displayvalue" : "女性 ",      "key" : "FEMALE"    }}

Page 10: OpenSocial RESTful API

Person (Atom)

<entry xmlns="http://www.w3.org/2005/Atom">  <content type="application/xml">    <person xmlns=...>      <name>        <unstructured>Jane Doe</unstructured>      </name>      <gender key="FEMALE">女性 </gender>    </person>  </content>  <title/>  <updated>2003-12-13T18:30:02Z</updated>  <author/>  <id>urn:guid:example.org:34KJDCSKJN2HHF0DW20394</id></entry>

Page 11: OpenSocial RESTful API

Messaging

Page 12: OpenSocial RESTful API

Concurrency

Page 13: OpenSocial RESTful API

Batching

Page 14: OpenSocial RESTful API

Next!

Page 15: OpenSocial RESTful API

More Infohttp://docs.google.com/Doc?docid=dc43mmng_2g6k9qzfb&hl=en

Questions?  Contact me:

John [email protected]://abstractioneer.org=john.panzer