לפני חודש
כתבתי את הפונקציה הבאה בגוגל סקריפט:
function doGet(e) {
try {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var data = e.parameter;
sheet.appendRow([new Date(), data.book_name, data.location_in_book, data.file_name, data.file_path, data.source, data.error_details, data.ApiPhone]);
return ContentService.createTextOutput("Success").setMimeType(ContentService.MimeType.TEXT);
} catch (error) {
return ContentService.createTextOutput("error").setMimeType(ContentService.MimeType.TEXT);
}
}
ולמרות שהפעולה בוצעה אני מקבל שוב ושוב "אין מענה משרת api
ההגדרות בשלוחה הם כדלהלן:
type=api
api_link=https://script.google.com/macros/s/.../exec
api_call_id_send=no
api_hangup_send=no
api_did_send=no
api_extension_send=no
api_enter_id_send=no
api_enter_id_name_send=no
api_time_send=no
api_000=book_name,,,,,Digits
api_001=location_in_book,,,,,Digits
api_002=file_name,,,,,Digits
api_003=file_path,,,,,Digits
api_004=source,,,,,Digits
api_005=error_details,,,,,Digits
say_api_answer=yes