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

时间:2012-04-04 06:22:13

标签: google-calendar-api google-gadget

我正在尝试添加Google日历小工具以及活动。但是,每当我尝试添加小工具和事件时,Google日历API都会向我显示“无效值”错误。

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

{
 "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"
 }
}

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

1 个答案:

答案 0 :(得分:7)

我也遇到了这个问题。在我看来,iconLink和链接必须是https才能使用。

相关问题