Caught exception: {
"error": {
"code": 401,
"message": "ScriptError",
"errors": [
{
"message": "ScriptError",
"domain": "global",
"reason": "unauthorized"
}
],
"status": "UNAUTHENTICATED"
}
}
gs code:
function createForms() {
var form = FormApp.create('New Form');
Logger.log('Published URL: ');
}
如果我删除var form = FormApp.create('New Form')
,那么它可以正常工作