Spaces:
Runtime error
Runtime error
Move notion token to repo secret
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def logToNotion(text, top):
|
|
67 |
"Accept": "application/json",
|
68 |
"Notion-Version": "2022-02-22",
|
69 |
"Content-Type": "application/json",
|
70 |
-
"Authorization": "Bearer
|
71 |
}
|
72 |
|
73 |
response = requests.post(url, json=payload, headers=headers)
|
|
|
67 |
"Accept": "application/json",
|
68 |
"Notion-Version": "2022-02-22",
|
69 |
"Content-Type": "application/json",
|
70 |
+
"Authorization": "Bearer " + os.environ.get("NotionToken")
|
71 |
}
|
72 |
|
73 |
response = requests.post(url, json=payload, headers=headers)
|