“访问未配置。请使用Google Developers Console为您的项目启用API。“ [英] "Access Not Configured. Please use Google Developers Console to activate the API for your project."
问题描述
我有一个带有表单的Google网站。我在表单的电子表格中添加了一个脚本,并添加了表单提交触发器。我正在尝试创建一个空圈。
这是脚本。
函数createCircle(e){
尝试{
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(电子邮件,创建的事件,圈子名称是);
} catch(e){
var email = Session.getActiveUser()。getEmail();
MailApp.sendEmail(电子邮件,'event failed',e.message);
}
}
我已经激活Google+ Domains API请转到资源 - >高级Google服务。有一行表示 这些服务必须在Google Developers Console中启用。 因此,我进入了Developers控制台并激活了API。
我仍然得到相同的错误,访问未配置。请使用Google Developers Console为您的项目激活API。
C $ C> PlusDomains.Circles.insert 。确保您的网站是在您的付费Google Apps帐户下创建的,PlusDomain只能与Google Domains(即付费帐户)一起使用。只是一个想法
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. 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. There is a line that says These services must also be enabled in the Google Developers Console. So I went into the Developers console and activated the API.
I still get the same error, Access Not Configured. Please use Google Developers Console to activate the API for your project.
You are using PlusDomains.Circles.insert
. Make sure your site is created under your paid Google Apps account, PlusDomains will only work with Google Domains (i.e. paid accounts). Just a thought
这篇关于“访问未配置。请使用Google Developers Console为您的项目启用API。“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!