致电谷歌执行API时,提示“代码”:401

时间:2017-03-22 02:11:46

标签: forms api execution

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'),那么它可以正常工作

0 个答案:

没有答案