0

任何人都可以向我解释将以下代码放在哪里及其含义..它在 .js 文件中显示错误,显示“对象没有方法 .discover”。

googleapis
.discover('calendar', 'v3')
.discover('oauth2', 'v2')
.execute(function(err, client){
if(!err)
callback(client);
});
4

1 回答 1

0

What version of the nodejs client are you using? The .discover() method was removed for version 1.0 and replaced with pre-compiling all the libraries.

See https://github.com/google/google-api-nodejs-client/blob/master/MIGRATING.md for information about migrating your code to 1.0.

于 2014-10-18T13:39:02.727 回答