我正在尝试使用 googleapis 包的 1.0.20 版本向 NodeJS 中的镜像 API 时间线发送一个非常简单的 Hello World 消息,但我得到的响应不是很有帮助。
// OAuth is happening earlier and creating the proper auth tokens
googleapis.options({ auth: oAuth2Client });
mirror = googleapis.mirror('v1');
// This works fine and gives me a list of my current timeline
mirror.timeline.list({}, function(err, data) {console.log(err); console.log(data);})
// This results in an error
mirror.timeline.insert({'text':'Hello World'}, function(err, data) {console.log(err); console.log(data);})
我看到的错误是:
{ errors: [ { domain: 'global', reason: 'required', message: 'Required' } ],
code: 400,
message: 'Required' }
我发现了一些其他问题的响应相同,它们都是关于缺少输入的,但是我缺少哪个输入?