Google api 谷歌日历推送通知:';原因';:';未找到';

Google api 谷歌日历推送通知:';原因';:';未找到';,google-api,google-calendar-api,google-api-client,google-api-python-client,Google Api,Google Calendar Api,Google Api Client,Google Api Python Client,我想为每个用户的日历ID设置推送通知 这是没有意义的。同时,以该代码为例: POST https://www.googleapis.com/calendar/v3/calendars/my_calendar@gmail.com/events/watch Authorization: Bearer auth_token_for_current_user Content-Type: application/json 用我的_calendar@gmail.com实际上,我收到的calendarID都

我想为每个用户的
日历ID
设置推送通知

这是没有意义的。同时,以该代码为例:

POST https://www.googleapis.com/calendar/v3/calendars/my_calendar@gmail.com/events/watch
Authorization: Bearer auth_token_for_current_user
Content-Type: application/json

用我的_calendar@gmail.com实际上,我收到的calendarID都以@group.calendar.google.com结尾时,使用了calendarID。因此,我不确定这是否是造成这种情况的原因,但我很想知道如何修复错误。

哪一行给出了404?
返回str(req.json())
您确定这不是
requests.post()
行吗?这是在您的日历上,还是在其他用户的日历上?
{'error': {'errors': [{'domain': 'global', 'reason': 'notFound', 'message': 'Not Found'}], 'code': 404, 'message': 'Not Found'}}
POST https://www.googleapis.com/calendar/v3/calendars/my_calendar@gmail.com/events/watch
Authorization: Bearer auth_token_for_current_user
Content-Type: application/json