[英]“Access Not Configured. Please use Google Developers Console to activate the API for your project.”
I have a google site with a form.I have added a script to the form's spreadsheet and added a "on form submit" trigger. 我有一个带有表单的google网站。我在表单的电子表格中添加了一个脚本,并添加了一个“on form submit”触发器。 I am trying to create an empty circle. 我想创建一个空圆圈。
Here is the script. 这是脚本。
function createCircle(e) {
try{
var email = Session.getActiveUser().getEmail();
var sh = SpreadsheetApp.getActiveSheet();
var circle = PlusDomains.newCircle();
circle.displayName = e.values[1];
var userId = 'me';
circle = PlusDomains.Circles.insert(circle, userId);
MailApp.sendEmail(email,'event created' , "Circle name is ");
}catch(e){
var email = Session.getActiveUser().getEmail();
MailApp.sendEmail(email,'event failed' , e.message);
}
}
I have activated the Google+ Domains API for the script by going to Resources->Advanced Google Services . 我已通过转到资源 - >高级Google服务激活了脚本的Google+域名API。 There is a line that says These services must also be enabled in the Google Developers Console. 有一行说明这些服务也必须在Google Developers Console中启用。 So I went into the Developers console and activated the API. 所以我进入了Developers控制台并激活了API。
I still get the same error, Access Not Configured. Please use Google Developers Console to activate the API for your project.
我仍然得到相同的错误, Access Not Configured. Please use Google Developers Console to activate the API for your project.
Access Not Configured. Please use Google Developers Console to activate the API for your project.
It's exactly what it says. 这正是它所说的。 To fix: 修理:
You may need to regenerate your access and refresh token for this to work. 您可能需要重新生成访问权限并刷新令牌才能使其正常工作。
You are using PlusDomains.Circles.insert
. 您正在使用PlusDomains.Circles.insert
。 Make sure your site is created under your paid Google Apps account, PlusDomains will only work with Google Domains (ie paid accounts). 确保您的网站是在付费Google Apps帐户下创建的,PlusDomains仅适用于Google Domains(即付费帐户)。 Just a thought 只是一个想法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.