Google Calendar API - 如何在活动中添加日历小工具?

ska*_*rim 3 google-calendar-api google-gadget

我正在尝试添加Google日历小工具以及活动.但是,每当我尝试添加小工具和事件时,Google日历API都会给我一个"无效值"错误.

我正在使用event.insert协议.如果我在没有小工具块的​​情况下发送请求,它可以正常工作并添加一个事件.但是,添加小工具块会引发错误.

{
 "location": "San Jose, CA",
 "description": "blah blah blah blah",
 "kind": "calendar#event",
 "start": {
  "dateTime": "2012-04-04T10:00:00.000-07:00"
 },
 "end": {
  "dateTime": "2012-04-04T10:00:00.000-07:00"
 },
 "gadget": {
  "iconLink": "http://www.thefreedictionary.com/favicon.ico",
  "link": "http://www.thefreedictionary.com/_/WoD/wod-module.xml",
  "title": "Word of the Day",
  "type": "application/x-google-gadgets+xml",
  "height": 136,
  "width": 300,
  "display": "icon"
 }
}
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么会这样?我真的需要找到一种方法将图像插入到我添加到谷歌日历的事件中.谢谢!

小智 7

我也面临着这个问题.在我看来,iconLink和链接必须是https才能使用.