我正在尝试使用api从谷歌日历中删除事件:
$service->events->delete('primary', 'eventId');
我收到了这个错误:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
我也尝试使用api explorer并发生同样的错误。
有人知道这是什么问题吗?
我使用python遇到了类似的问题。我做错的两件事:
.execute()
调用结束时添加delete()
。我打赌在PHP中有类似的东西?从文档中复制一段代码时遇到了这个问题。然后我注意到该方法对日历ID一无所知。
$service->events->delete('calendarId', 'eventId');
也许这有帮助