我有一個form.I的谷歌網站,我已經添加了一個腳本到表單的電子表格,並添加了「表單提交」觸發器。我正在嘗試創建一個空圈。「訪問未配置,請使用Google Developers Console爲您的項目激活API。」
這是腳本。
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);
}
}
我已經去資源 - >高級谷歌服務激活腳本了Google+ API的域。有一行說這些服務還必須在Google Developers Console中啓用。所以我進入了開發人員控制檯並激活了API。
我仍然得到同樣的錯誤,Access Not Configured. Please use Google Developers Console to activate the API for your project.
您是否還在開發人員控制檯中激活了Google+ API和Drive API? – abraham
我做到了。我昨天離開了這個,今天回到了它。此錯誤消失,但新的錯誤,「禁止」 – nupac
這可能意味着您使用的憑據已過期或無效。 – abraham