0
//下面是代碼,我可以手動將此有效內容作爲硬編碼值傳遞給代碼,但不是我需要從Google工作表中獲取此值。有什麼建議嗎? // /*谷歌Google Apps腳本獲取公司信息通過ID(NeoNova.AppDirect)*/如何使用Google Apps腳本從Google工作表傳遞有效內容?
function myFunctionpost()
{
var url = "http://............/html/get_company_details.php";
var payload =
{
"companyId" : "748575e9-0eb7-44a5-84e9-96e568ca0f9c",
};
var options =
{
"method" : "POST",
"payload" : payload,
};
var options = { "method":"POST","payload" : payload};
var response = UrlFetchApp.fetch(url, options);
Logger.log(response.getContentText());
var recipient = Session.getActiveUser().getEmail();
var subject = 'Company details By Id (NeoNova.AppDirect)';
var body = Logger.getLog();
MailApp.sendEmail(recipient, subject, body);
}
謝謝阿德林...它完美的工作。 –