app script와 구글 스프레드 시트를 사용하기
https://www.youtube.com/shorts/zkrVpleJIeI
이거 보고 해보고 싶어서
appscript samples
여러 예시를 볼 수 있음. 채팅앱도 만들수 있네 예제 위주
https://developers.google.com/apps-script/samples
Fundamentals of Apps Script with Google Sheets
구글 시트랑 사용하는 기본 가이드
감 잡을 수 있음 주요 클래스 알려주고
SpreadsheetApp
,Spreadsheet
,Sheet
, andRange
.https://developers.google.com/codelabs/apps-script-fundamentals-2#1
대충보고 여기 링크되어 있는 각각의 문서 사이트 참고
SpreadsheetApp
,Spreadsheet
,Sheet
, andRange
시트앱은 전체 삭제 생성 가능하고 스프레드시트는 시트 하나를 말하는 거
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app
https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet
스프레드시트 아이디
https://stackoverflow.com/questions/36061433/how-do-i-locate-a-google-spreadsheet-id
cors에러 해결
https://stackoverflow.com/questions/53433938/how-do-i-allow-a-cors-requests-in-my-google-script
이거는 디버그 모드에서만 되는 듯(logger class 사용)
https://stackoverflow.com/questions/11539411/how-to-debug-google-apps-script-aka-where-does-logger-log-log-to
https://developers.google.com/apps-script/reference/base/logger
fetch함수 쓸 때
mode: 'no-cors',
이거 'application/json'일때는 필요한데 text일때는 필요없음 안정성 때문인듯
댓글
댓글 쓰기