我試圖從Google Apps腳本功能將數據保存到解析數據庫。我試圖使用ParseDB庫(https://script.google.com/macros/library/d/MxhsVzdWH6ZQMWWeAA9tObPxhMjh3Sh48/12),但我似乎無法得到它的工作。好像我不能正確訪問ParseDBInstance:從Google Apps腳本保存到解析數據庫
function onFormSubmit(e) {
// e.namedValues is an object containing question fields associated with lists of responses
var db = getMyDb('redacted',
'redacted',
'response');
Logger.log(db);
db.save({
test: 'a_string'
});
}
我找不到任何網上說明如何我應該做這個......我覺得我只是做了愚蠢的事情(對應用程序腳本來說很新穎/一般/解析JavaScript)。
任何建議將不勝感激!
您可能希望因爲你看起來已經將你的API密鑰包含在你的代碼示例中,所以你在將來發布時會清理你的代碼,我已經編輯了這些代碼,但是對於查看這個問題的編輯歷史記錄的任何人都可以看到它們,因此我建議你生成新的API密鑰 – RobV