Weitere ähnliche Inhalte Ähnlich wie Crossing the Boundaries of Web Applications with OpenSocial Ähnlich wie Crossing the Boundaries of Web Applications with OpenSocial (20) Mehr von Bastian Hofmann (19) Kürzlich hochgeladen (20) Crossing the Boundaries of Web Applications with OpenSocial21. A set of APIs to access the social graph of users
28. Container Shindig
vz.net apivz.net
HTTP GET
Gadget apivz.net/gadgets/render?
apivz.net xml=....
29. Container Shindig
vz.net apivz.net
HTML Page with OpenSocial
Gadget JavaScript API
apivz.net
30. Container Shindig
vz.net apivz.net
Ajax Requests to API
Gadget
apivz.net
34. Container Shindig
vz.net apivz.net
Ajax
Gadget Gadget Backend
apivz.net api.twitter.com
35. Container Shindig
vz.net apivz.net
Ajax
HTTP
Gadget Gadget Backend
apivz.net api.twitter.com
36. Container Shindig
vz.net apivz.net
Ajax
HTTP
Owner ID
Viewer ID
Gadget
OAuth Signature
apivz.net
Gadget Backend
api.twitter.com
40. JavaScript RPC
Container - window.postMessage
vz.net
Message - Iframes with relay files
Gadget - Flash bridge
apivz.net
52. 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?
57. Pre Registration of Client at
Twitter:
twitter.com
- Shared Consumer Key
- Shared Consumer Secret
lanyrd.com
58. HTTP POST
Connect with Twitter
lanyrd.com
59. twitter.com
HTTP POST
Connect with Twitter
HTTP GET
lanyrd.com Consumer Key
Redirect URI
Signature (Consumer
Secret)
60. twitter.com
HTTP POST
Connect with Twitter
lanyrd.com
Request Token
Request Token Secret
61. HTTP Redirect
http://twitter.com/authorize?
requestToken=...&consumerKey=...
lanyrd.com
63. Login
twitter.com/
authorize
64. Grant permission
twitter.com/
authorize
Create verifier
and bind it to
User and Request
Token
67. twitter.com
HTTP GET
HTTP GET
lanyrd.com Consumer Key
Verifier
Signature (Consumer &
Request Token Secret)
68. twitter.com
HTTP GET
lanyrd.com
Access Token
Access Token Secret
69. twitter.com
HTTP GET
lanyrd.com
API Request
Consumer Key
Signature (Consumer &
Access Token Secret)
73. From: notifications@socialnetwork.com
To: johndoe@example.com
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
}
75. Documentation
http://docs.opensocial.org
http://developer.studivz.net/wiki/index.php/
Gadgets_Technical_Documentation