Firebase Hosting with Apps Script using Execution API


Firebase hosting app - eojjisheet


방명록 기능입니다.
이메일이 기록됩니다.




  • firebase hosting app - eojjisheet - 링크가 있는 모든 사용자가 수정할 수 있음




  • firebase hosting app - eojjisheet - API 실행 가능으로 배포 - 모든 사용자



웹에서 name과 comment를 입력 받아서 Google sheet에 저장하는 기능을 Firebase에 Hosing했습니다.

  1. Google Sheet의 Apps script 함수를 웹에서 호출할 수 있도록 Execution API로 배포합니다.
  2. Firebase Hosing에 Execution API를 호출하는 index.html을 upload하였습니다.
  3. Google 로그인이 필요합니다. Authorize access to Google Apps Script Execution API 



Google Sheets as a Database – Authenticated INSERT에서 다음을 요청합니다.
Google에서 내 정보 확인
내 이메일 주소를 봅니다.
Google 드라이브에서 스프레드시트 보기 및 관리

참조:

Create a Target Project for the Apps Script Execution API

Before you can begin any of the quickstarts, you will need a target Apps Script for the API to call. Follow these steps to create a simple script and enable it for API access.

Step 1: Create the script

  1. Open this Google Sheet and File > Make a copy and copy your new Sheet document id from your browser address bar:






Firebase Hosting | Firebase
Firebase Hosting provides fast and secure static hosting for your web app. Next Steps: Get Started wi...

댓글

익명님의 메시지…
관련 소스
https://github.com/eojji/Firebase-hosting-and-Google-apps-execution

이 블로그의 인기 게시물

Duplicate files, Deduper in Google Drive