【发布时间】:2016-09-19 05:37:39
【问题描述】:
我拥有域的超级管理员访问权限,我想使用 Google Apps 脚本创建日历资源。
通常,我们可以在具有管理员访问权限的 Google 管理控制台中创建日历资源(https://accounts.google.com)...But,但我想自动化它。我检查了此页面(https://developers.google.com/admin-sdk/directory/v1/reference/resources/calendars/insert).. 并将其调整为下面的脚本,但我'我收到“错误请求”错误。
这里有什么问题?
这是我的代码--
function myFunction() {
var cus = 'email id';
var res ={
resource : 'Name of the resource',
resourceDescription : "Meeting Room",
resourceType : "Room"
}
AdminDirectory.Resources.Calendars.insert(res, cus);
}`
【问题讨论】:
-
您能否提供更多信息?你到底想要什么?
-
@SergeHendrickx 更新了查询..请检查..如果您需要其他任何内容,请告诉我...
标签: google-apps-script google-admin-sdk