Más contenido relacionado La actualidad más candente (20) Similar a How to create OpenSocial Apps in 45 minutes (20) Más de Bastian Hofmann (19) How to create OpenSocial Apps in 45 minutes1. How to create an OpenSocial
Gadget in 45 minutes (hopefully)
Bastian Hofmann
18. I. A set of APIs to access the social graph
of users
19. II.
A specification for including 3rd party
applications (gadgets) into social services
25. Container Shindig
vz.net apivz.net
HTTP GET
Gadget apivz.net/gadgets/render?
apivz.net xml=....
26. Container Shindig
vz.net apivz.net
HTML Page with OpenSocial
Gadget JavaScript API
apivz.net
27. Container Shindig
vz.net apivz.net
Ajax Requests to API
Gadget
apivz.net
31. Container Shindig
vz.net apivz.net
Ajax
Gadget Gadget Backend
apivz.net api.twitter.com
32. Container Shindig
vz.net apivz.net
Ajax
HTTP
Gadget Gadget Backend
apivz.net api.twitter.com
33. Container Shindig
vz.net apivz.net
Ajax
HTTP
Owner ID
Viewer ID
Gadget
OAuth Signature
apivz.net
Gadget Backend
api.twitter.com
37. JavaScript RPC
Container - window.postMessage
vz.net
Message - Iframes with relay files
Gadget - Flash bridge
apivz.net
40. Flash
Container Shindig
vz.net apivz.net
Ajax
HTTP
Gadget
apivz.net HTTP Gadget Backend
api.twitter.com
Flash
HTTP
41. Redirecting
Container Shindig
vz.net apivz.net
HTTP
iframe
api.twitter. Gadget Backend
com api.twitter.com
Ajax
51. 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?
56. Pre Registration of Client at
Twitter:
twitter.com
- Shared Consumer Key
- Shared Consumer Secret
lanyrd.com
57. HTTP POST
Connect with Twitter
lanyrd.com
58. twitter.com
HTTP POST
Connect with Twitter
HTTP GET
lanyrd.com Consumer Key
Redirect URI
Signature (Consumer
Secret)
59. twitter.com
HTTP POST
Connect with Twitter
lanyrd.com
Request Token
Request Token Secret
60. HTTP Redirect
http://twitter.com/authorize?
requestToken=...&consumerKey=...
lanyrd.com
62. Login
twitter.com/
authorize
63. Grant permission
twitter.com/
authorize
Create verifier
and bind it to
User and Request
Token
66. twitter.com
HTTP GET
HTTP GET
lanyrd.com Consumer Key
Verifier
Signature (Consumer &
Request Token Secret)
67. twitter.com
HTTP GET
lanyrd.com
Access Token
Access Token Secret
68. twitter.com
HTTP GET
lanyrd.com
API Request
Consumer Key
Signature (Consumer &
Access Token Secret)
70. Documentation
http://docs.opensocial.org
http://developer.studivz.net/wiki/index.php/
Gadgets_Technical_Documentation