Google wave sandbox

Does anyone develop robots and / or gadgets for Google Wave ?

I was part of the development of the sandbox for several days, and I was interested to see what others thought of the Google Wave API .

I was also interested in what everyone is working on. Please share your opinions and comments!

+3
source share
3 answers

I have not tried gadgets, but from the little that I looked at them, they look pretty straightforward. They are implemented in a template, and you can easily save states in them, allowing more complex things, such as RSVP lists and even games.

Robots are what interests me the most, and all I can say is that they are very easy to develop! Like no effort at all! Damn, I will write it for you right here:

import waveapi.events
import waveapi.robot

def OnBlipSubmitted(properties, context):
    # Get the blip that was just submitted.
    blip = context.GetBlipById(properties['blipId'])
    # Respond to the blip (i.e. create a child blip)
    blip.CreateChild().GetDocument().SetText('That\ so funny!')

def OnRobotAdded(properties, context):
    # Add a message to the end of the wavelet.
    wavelet = context.GetRootWavelet()
    wavelet.CreateBlip().GetDocument().SetText('Heeeeey everybody!')

if __name__ == '__main__':
    # Register the robot.
    bot = waveapi.robot.Robot(
        'The Annoying Bot',
        image_url='http://example.com/annoying-image.gif',
        version='1.0',
        profile_url='http://example.com/')
    bot.RegisterHandler(waveapi.events.BLIP_SUBMITTED, OnBlipSubmitted)
    bot.RegisterHandler(waveapi.events.WAVELET_SELF_ADDED, OnRobotAdded)
    bot.Run()

Google App Engine, . , Wave. Wave threading of blips, .. Google Code ( .)

+2

Google Wave , , , Wave . .

+2
+2

Source: https://habr.com/ru/post/1713187/


All Articles