1

Google Mirror API をいじって、いくつかのサンプル アプリを作成しています。私は探検家ではないので、Sturm の Mirror APIを使用しています。

特定の Google Glass 連絡先にテキストを共有するための有効な JSON 形式を知りたいです。API Explorerで次の JSON を試しましたが、400 Bad Request エラーが発生しました。また、API エクスプローラーではなくGoogle Glass Playgroundで同じことを行う方法はありますか?

{
    'recipients': [
        {
            'acceptTypes': [
                'text/plain'
            ],
            'displayName': 'myglassapp',
            'imageUrls': [
                'https://myglassapp.appspot.com/images/welcome.jpg'
            ],
            'id': 'babu_glass_app'
        }
    ],
    'kind': 'mirror#timelineItem',
    'isDeleted': False,
    'text' : 'Hello World',
}

エラー:

400 Bad Request

- Hide headers -

cache-control:  private, max-age=0
content-encoding:  gzip
content-length:  118
content-type:  application/json; charset=UTF-8
date:  Thu, 30 May 2013 08:05:47 GMT
expires:  Thu, 30 May 2013 08:05:47 GMT
server:  GSE
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "parseError",
    "message": "Parse Error"
   }
  ],
  "code": 400,
  "message": "Parse Error"
 }
}
4

1 に答える 1