헤더 가지고 오는 부분 수정
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user