# Google Mirror API Playground

The Playground lets you experiment with how content is displayed on Glass.

To authorize the Playground to send and receive data from
your account, enter your Google APIs project client ID in
the following text field and click **Authorize**.
<iframe width="1040px" height="800px" src="https://mirror-api-playground.appspot.com/"></iframe> <button type="button" class="button-red button expand-control once" style="font-size:13px">Show Playground usage information</button>

### Features

The playground currently supports the following features:

- **Image attachment** -- displaying an image attachment on the background or from an HTML payload.
- **Text-only** -- displaying a text-only timeline item.
- **Text and creator** -- displaying a text-only timeline item containing a creator.
- **HTML** -- displaying a timeline item rendered using HTML (`htmlPages` are not supported).
- **Menu Items** -- displaying `CUSTOM` menu items and sending fake notifications if the project is subscribed.
- **Insert** -- inserting a new timeline item in a user's timeline.
- **Update** -- updating existing a timeline item from a user's timeline.
- **Delete** -- deleting existing a timeline item from a user's timeline.

> [!NOTE]
> **Note:** The Playground does not support bundles.

### Getting started

To get started, visit the [Google Mirror API Playground](https://developers.google.com/glass/playground)
and play with the available templates.
You can edit the JSON payload or the HTML/text, which will update
how the content looks on Glass in the preview panel.

You can also authorize the Playground to retrieve the 20 most recent
timeline items that the project has access to or insert the timeline
items you have created in your Glass.

To give the Playground access to a timeline:

1. Create a [Google APIs project client ID](https://code.google.com/apis/console#:access).

   > [!WARNING]
   > **Warning:** Do not use the client ID that you use for your production Glassware for the Playground. Always create a new client ID for testing, which can reside in the same Google APIs project.

2. Add `https://mirror-api-playground.appspot.com` to the list of authorized
   `JavaScript` origins for the client ID

   ![APIs Console](https://developers.google.com/static/glass/images/api_access.png)
3. Copy your client ID to the Playground and start interacting with
   your timeline.

![Use your own client ID](https://developers.google.com/static/glass/images/authorize_own_client_id.png)