我有superadmin访问域,我想使用Google Apps脚本创建日历资源。通过管理员权限(https://accounts.google.com)...But),我们可以在Google管理控制台中创建日历资源,但我想将其自动化,我检查了此页面(https://developers.google.com/admin-sdk/directory/v1/reference/resources/calendars/insert)..并将其改编为脚本,但是我得到了一个“错误的请求” 的错误。如何在Google域中创建日历资源?
这里有什么问题?
这是我的代码 -
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更新了查询..请检查..让我知道如果您需要其他任何东西... – Kanchan