我目前收到错误:
{ [Error: Not Found]
code: 404
errors: [ { domain: 'global', reason: 'notFound', message: 'Not Found' } ] }k
尝试使用JWT使用日历api时。我正在努力找到此错误消息以及如何在线调试。请帮忙!我的代码如下:
jwtClient.authorize(function(err, tokens) {
if (err) {
console.log(err);
return;
}
// Make an authorized request to list calendar files
calendar.events.list({
auth: jwtClient,
calendarId: calendarId,
timeMin: (new Date()).toISOString(),
maxResults: 100,
singleEvents: true,
orderBy: 'startTime'
}, function(err, resp) {
// handle err and response
console.log("===============")
console.log(err)
console.log(resp)
});
});
当我通过auth.OAuth2 ...
授权时,通话工作正常