OpenSocial RESTful API

Post on 13-Jan-2015

999 views 1 download

Tags:

description

 

Transcript of OpenSocial RESTful API

OpenSocial 0.8 RESTful API

(yes, finally)

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

Gadgets environment is comfortable but limited

The RESTful API opens up new possibilities

Discovery: Finding Endpoints.

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>...        

Authentication + Authorization: OAuth

Data Types:People, Activities, AppData, Groups

Data Formats:JSON, Atom XML

Person (JSON)

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

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>

Messaging

Concurrency

Batching

Next!

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

Questions?  Contact me:

John Panzerjpanzer@google.comhttp://abstractioneer.org=john.panzer