Google Execution API可以正常运行" devMode:true"但是当devMode更改为true时抛出脚本错误。
我能够获得成功回复,但是当我将devMode
更改为false
或我正在跳过该行devMode:false
时
API返回脚本错误
var request = {
function: 'postData',
parameters: [order],
devMode: true
};
// Make the API request.
var op = gapi.client.request({
root: 'https://script.googleapis.com',
path: 'v1/scripts/' + scriptId + ':run',
method: 'POST',
body: request
});