헤더 가지고 오는 부분 수정

This commit is contained in:
2025-07-22 15:44:37 +09:00
parent f6cb85b54b
commit 83fa9f8e1f

View File

@ -15,14 +15,6 @@ class Config:
NOTION_API_BASE = "https://api.notion.com/v1" NOTION_API_BASE = "https://api.notion.com/v1"
NOTION_VERSION = "2022-06-28" NOTION_VERSION = "2022-06-28"
@classmethod
def get_notion_headers(cls):
return {
"Authorization": f"Bearer {cls.NOTION_API_SECRET}",
"Notion-Version": cls.NOTION_VERSION,
"Content-Type": "application/json"
}
# 웹훅 서명 검증용 비밀키 (옵션) # 웹훅 서명 검증용 비밀키 (옵션)
NOTION_WEBHOOK_SECRET = os.getenv('NOTION_WEBHOOK_SECRET', None) NOTION_WEBHOOK_SECRET = os.getenv('NOTION_WEBHOOK_SECRET', None)