Google Wave: Product, Protocol, Platform

description »
Pamela Fox

Google Wave
Product
Platform
Protocol
Rich, Real-time Conversations
Edited & Nested
Private Replies
Playback
Wave Providers
Operational Transforms
Data Model
Client/Server
Embedding
Extensions
Robots
Gadgets
<html>
  <head>
    <title>Google Wave Embed API Example: Simple Wave</title>
    <script src="http://wave-api.appspot.com/public/embed.js"></script>
    <script type="text/javascript">
    function initialize() {
      var wavePanel = new WavePanel('http://wave.google.com/a/wavesandbox.com/');
      wavePanel.loadWave('wavesandbox.com!w+waveID');
      wavePanel.init(document.getElementById('waveframe'));
    }
    </script>
  </head>
  <body onload="initialize()">
    <div id="waveframe" style="width: 500px; height: 100%"></div>
  </body>
</html>
from waveapi import events
from waveapi import robot

def OnBlipSubmitted(properties, context):
  blip = context.GetBlipById(properties['blipId'])
  contents = blip.GetDocument().GetText()
  contents = contents.replace(':(', unichr(0x2639)) # happy
  contents = contents.replace(':)', unichr(0x263A)) # sad
  blip.GetDocument().SetText(contents)

if __name__ == '__main__':
  smiley = robot.Robot('Smiley')
  smiley.RegisterHandler(
      events.BLIP_SUBMITTED, OnBlipSubmitted)
  smiley.Run()
Pamela Fox
CA > NY > LA > BA > AU
Maps API > Wave APIs
Google
USC >
@pamelafox
pamelafox@g*
Why?
real-time
revisions
subscription
communication
comments

Loading comments...

Please log in to add your comment.

Report abuse

More presentations by Pamela Fox

More prezis by author