feat(project): meeting board button opens a blank Google Slides deck

A "회의록 보드" button next to attendees opens the week's Google Slides
deck in its own window. The deck is found (Drive appProperties) or
created in the shared drive MEETING_BOARD_FOLDER_ID as one BLANK slide,
named like "10월 2주차 (10/5~10/11)". Needs a token with Drive and
Slides scopes; the authorize script now requests them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 12:04:09 +09:00
parent 15e84ba5bc
commit c9d5e6e017
18 changed files with 427 additions and 13 deletions
+10 -5
View File
@@ -1,10 +1,10 @@
"""Google 스프레드시트 쓰기용 refresh token 1회 발급 스크립트.
"""Google 스프레드시트 쓰기·회의록 보드(Drive·Slides)용 refresh token 1회 발급 스크립트.
조직 정책(`iam.disableServiceAccountKeyCreation`)으로 서비스 계정 키를 만들 수 없을 때
사용자 계정 OAuth 로 서버가 시트에 기록하도록 하기 위한 토큰을 받는다.
사전 준비 (Google Cloud Console)
1. API 및 서비스 → 라이브러리 → "Google Sheets API" 사용
1. API 및 서비스 → 라이브러리 → "Google Sheets API"·"Google Drive API"·"Google Slides API" 사용
2. API 및 서비스 → OAuth 동의 화면 구성(내부 또는 외부)
3. 사용자 인증 정보 → 사용자 인증 정보 만들기 → **OAuth 클라이언트 ID**
→ 애플리케이션 유형 **데스크톱 앱** → 클라이언트 ID / 보안 비밀 확인
@@ -14,9 +14,9 @@
또는 환경변수로:
GOOGLE_SHEETS_OAUTH_CLIENT_ID / GOOGLE_SHEETS_OAUTH_CLIENT_SECRET
브라우저가 열리면 **시트를 편집할 수 있는 계정**으로 로그인·동의한다.
브라우저가 열리면 **시트를 편집할 수 있고 회의록 보드 공유 드라이브에 쓸 수 있는 계정**으로 로그인·동의한다.
마지막에 출력되는 refresh token 을 서버 `.env` 의
`GOOGLE_SHEETS_OAUTH_REFRESH_TOKEN` 에 넣는다.
`GOOGLE_SHEETS_OAUTH_REFRESH_TOKEN` 에 넣는다(시트·회의록 보드가 같이 쓴다).
주의
- 출력된 refresh token 은 비밀값이다. Git·메신저에 남기지 말 것.
@@ -30,7 +30,12 @@ import argparse
import os
import sys
SCOPES = ["https://www.googleapis.com/auth/spreadsheets"]
# 스프레드시트(쿠팡 출고리스트) + Drive·Slides(주간 회의록 보드 — 공유 드라이브에 빈 슬라이드 만들기)
SCOPES = [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/presentations",
]
def main() -> int: