SAPO Messenger Meets Web 2.0

1,099 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,099
On SlideShare
0
From Embeds
0
Number of Embeds
18
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

SAPO Messenger Meets Web 2.0

  1. 1. SAPO messenger meets Web2.0:<br />Create your own Instant Messaging mashups!<br />
  2. 2. Overview<br /> Introduction<br />XMPP Basics<br />How to use the API<br /> What can you do?<br />
  3. 3. Introduction<br />Test and develop your own plug-ins! <br />The best ones developed in Codebits are going to be available in SAPO’s community, in our new and upcoming site.<br />The SAPO Messenger Apps:<br />XMPP based<br />Delphi (windows client)<br />Javascript (web client)<br />Our team:<br />Luis Troni<br />Jorge Cruz<br />Carlos Oliveira<br />
  4. 4. XMPP Basics – Stands for ...<br /> eXtensible Messaging and Presence Protocol:<br />Real time messaging system<br />XML based<br />Decentralized<br />Secure<br />Flexible<br />Open standards<br /> Useful link: http://xmpp.org/<br />
  5. 5. XMPP Basics – Packet traffic<br />Client<br />alice@sapo.pt<br />Client<br />john@gtalk.com<br />Ejabberd Server<br />sapo.pt<br />Server<br />gtalk.com<br /><ul><li> Inter-domain packet traffic is established between servers not clients
  6. 6. Inter-domain authentication is not supported</li></li></ul><li>XMPP Basics – Jabber ID (JID)<br />User<br />Domain<br />Resource<br />alice<br />sapo.pt<br />workplace<br />@<br />/<br />Bare JID<br />Full JID<br />
  7. 7. XMPP Basics – Stanzas types<br />&lt;message/&gt; - the conversation itself<br />&lt;presence/&gt; - it is the way you define your status on the web, there are several types of presences, ex: online, away,...<br />&lt;iq/&gt; - Information Queries, the way you change stuff<br />
  8. 8. How to use the API (I)<br />Create Plugins folder inside app folder:<br />
  9. 9. How to use the API (II)<br /> Must have plugin.ini with required data<br />
  10. 10. How to use the API (III)<br />plugin.ini example<br />[plugin]<br />[plugin]<br />entrypoint= Main<br />language= VBScript<br />[description]<br />Name= Hello World!<br />Description= your friendly hello world test!<br />Author = SAPO<br />Version= 1.0.0.0<br />[components]<br />File1=Test01.vbs<br />Name of the entry function<br />Language of the plug-in<br />File(s) that contains the source code<br />
  11. 11. How to use the API (IV)<br /> Plugins will be loaded on main window, as defined in plugin.ini<br />
  12. 12. How to use the API (V)<br /> The Windows Script Host API:<br />Roster_OnPresenceChange (int Presence Value) <br />Roster_OnMoodChange (int Mood Value) <br />Roster_OnStatusChange (strStatusPhrase Value) <br />Roster_OnPresenceReceived (str JID Value,int Presence value) <br />Roster_OnDisconnect<br />
  13. 13. What can you do? - Example Code<br />The “hello world” example<br />
  14. 14. What can you do? – Other ideas<br /> Real-time Social Networking<br /> Insert RSS notifications<br /> React to XMPP events (ex: change status)<br />&lt;Insert your idea here/&gt;<br />
  15. 15. @web: <br />http://messenger.sapo.pt/codebits <br /> @e-mail & @xmpp:<br />messenger.plugins@sapo.pt<br />Feel free to contact us!<br />

×