Quick! Let’s Embed a Wave!
Last but not least, we’re going to use the Google Wave Embed API to integrate a wave into a web page. As I mentioned previously, this API is the smallest and least complex of the APIs. Currently, there is limited customization and configuration that can be done via this API, although Google has stated that the API will be expanded in the future.
Setting Up the Target Environment
For this exercise, I will set up a temporary web page on a web server to which I can upload files. If you already have an existing website set up, you can create a test page to use just the same. If you don’t have access to a web server, you can create a test web page as a static file that you can load to the cloud using App Engine.[33] You would reference the web page as you do other static files in an App Engine application.
A Dash of HTML and JavaScript
We’re going to create a basic HTML page that contains a few HTML elements and some JavaScript. Our Oracle Bot test wave from the robot example will be embedded in this web page. Before we get started, you’ll need to find the ID of the wave that you want to embed. You can do this in the Google Wave Sandbox by opening a wave and selecting the Debug menu at the top right. Once you click the menu, you will see an option to get the current wave’s ID. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access