function doPost(e){
let sheet = SpreadsheetApp.openById('1KqIphIxp3O0WfNWS143klIt5b3lanHwe61nsArESuow').getSheetByName('test');
sheet.appendRow([new Date(), e.postData.contents])
return ContentService.createTextOutput('response status 200')
}
function second(exp_id, secret){
var respons = UrlFetchApp.fetch('https://vsemart.getcourse.ru/pl/api/account/exports/'+exp_id+'?key='+secret)
//Logger.log('Second: ' + JSON.stringify(respons.getContentText()))
Logger.log(respons.getContentText())
}
Logging output too large. Truncating output. {"success":true,"info":{"fields":["id","Email","Тип регистрации","Создан","Последняя активность","Имя","Фамилия","Телефон","Дата рождения","Возраст","Страна","Город","От партнера","В какой соцсети о нас узнали?","Leelloo_Chat","счетчик дожима","test server","Leeloo_id","source_link","reg_out_compain","Код для доступа к урокам","vk_uid","sourceUtmCompain","4 секретные цифры","Секретные цифры для Нового Года","Строка","Выбор","LinkToPact","MessageToWA","sendMessageToPact","Я согласен с правилами","Код для бонусных уроков","Код после автовеба NEW","bothelp_id","Откуда пришел","utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_group","ID партнера","Email партнера","ФИО партнера","ФИО менеджера","VK-ID"],"items":[["26911176","helene-000000a@mail.ru","Зарегистрировался самостоятельно","2018-10-12 07:46:25","2021-04-26 23:00:05","Елена","","7927","","","","","","","","","","","utm_source=%D0%A2%D0%95%D0%A1%D0%A21&utm_medium=%D0%A0%D0%A4+2+%E2%80%94+%D0%9A%D0%BE%D0%BF%D0%B8%D1%8F&utm_campaign=1&fbclid=PAAaYhXyWb0PnNyOlCV7YcuFSWJkvRTETACws4O9v5BT9HT7JCS5mbTu--p-E","","","","1","","","","","","","","","","","","","","","","","","","","","","",""],["34357234","723812@mail.ru","Зарегистрировался самостоятельно","2019-02-11 18:37:32","2021-04-27 20:06:33","Яна","Кирьянова","+79313107294","1981-05-24","40","Россия","Санкт-Петербург","","","https://app.leeloo.ai/chats/All/5cfc
function senler(){
var data = {
'access_token': 'ee---------------------------------------------------46',
'vk_group_id': 163864515,
'v': 2,
'vk_user_id': 132528477,
'bot_id': 356810,
};
var options = {
'method': 'post',
'payload' : data
};
let response = UrlFetchApp.fetch('https://senler.ru/api/bots/addSubscriber', options);
Logger.log(response.getResponseCode());
}