【发布时间】:2016-04-09 16:12:30
【问题描述】:
我正在使用 Google 日历推送通知。一切正常,我注册我的频道没有问题。对日历的更改会按预期生成通知。
我想停止推送通知。我正在调用 Google 停止推送通知 API。
"https://www.googleapis.com/calendar/v3/channels/stop"
但我收到错误代码:404 and message: "Channel not found for project"。
请求:
googleCalendar.channels.stop({
auth: oauth2Client,
resource: {
id: 'cfabcfaa-a6eb-4432-8068-6417ee2ce8a6', //channelID
resourceId: '3kGwQdmzSMCZ41MAFdwEzt0ugNQ' //resourceID
}
}, function(err, results) {
if(err){
return;
}
console.log(results) })
回复:
{ [Error: Channel 'cfabcfaa-a6eb-4432-8068-6417ee2ce8a6' not found for project '87165627894']
code: 404,
errors:
[ { domain: 'global',
reason: 'notFound',
message: 'Channel \'cfabcfaa-a6eb-4432-8068-6417ee2ce8a6\' not found for project \'87165627894\'' } ] }
谁能帮助我为什么会收到此错误? 谢谢。
【问题讨论】: