Tag: 谷歌的API 的NodeJS客户端

Google Page Speed Insights – 基本authentication

我目前使用npm psi来对可公开访问的站点(基本authentication除外)进行psitesting。 我所有的尝试使用用户名:密码@约会迄今为止只有psi和psi的失败。 我想知道我是否错过了什么? { [Error: PageSpeed is currently unable to fetch this URL. Please try again later.] code: 400, noStack: true }

无法通过nodejs中的google api发送邮件

我正在尝试通过Google API发送电子邮件。 我在node.js中使用googleapis来访问Google API。 我的问题是,当我尝试发送没有附件的简单邮件时,出现以下错误: 'raw'RFC822负载消息string或通过/ upload / * URL上传消息 我没有在我的请求中定义有附件,我没有在电子邮件地址中看到任何错误。 请帮忙。 我的代码: var google = require('googleapis'); var gmailClass = google.gmail('v1'); var email_lines = []; email_lines.push("From: \"Some Name Here\" <rootyadaim@gmail.com>"); email_lines.push("To: hanochg@gmail.com"); email_lines.push('Content-type: text/html;charset=iso-8859-1'); email_lines.push('MIME-Version: 1.0'); email_lines.push("Subject: New future subject here"); email_lines.push(""); email_lines.push("And the body text goes here"); email_lines.push("<b>And the bold text goes here</b>"); var […]