14. History
• 5 Corporate Board Members
– Google, IBM, Jive Software, MySpace, Yahoo!
• First released November 1, 2007, is Google’s
response to Facebook Developer Platform
• Version 0.8 was released on May 28, 2008
• Version 0.9 was released on April 16, 2009
• Version 1.0 was released on March 15, 2010
15. Basic Architecture
1. Client requests an application view
2. The container sends social data to the remote server
3. The remote server combines social and application data,
returning HTML and JavaScript
4. The container sends the content to the client
19. JavaScript App Example
• Gadget XML
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="my first app">
<Require feature="opensocial-0.8" />
</ModulePrefs>
<Content type="html">
HTML/ <![CDATA[
JavaScript code Hello world, this is my first app.
goes here ]]>
</Content>
</Module>
21. RESTful API
• The base URI for the web service, such as
http://example.com/resources/
• Data format: JSON, XML, Atom or YAML
• The set of operations supported by the web
service using HTTP methods (e.g., POST, GET,
PUT or DELETE).
26. Use RESTful API to access protected resource
of other users – How to manage?
27. OAuth
• What is it?
• OAuth flow (2-legged & 3-legged)
• Consumer Key & Consumer Secret
28. What is OAuth?
• Security protocol that allows to share private
data hosted on x web site with y web site
29. Terminologies
• Consumer
Application trying to access protected resource
• Service Provider
Website or web-service hosting protected resource
• User
Owner of the protected data
• Protected Resource
Images, Videos or documents hosted on web site or web-service which are
protected by the user
• Tokens
Random string of letters and numbers which is unique. Request Token,
Access Token
• Scope
Set of data hosted on service provider that user wants to share with consumer