notionhelper 0.2.2__py3-none-any.whl → 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
notionhelper/helper.py
CHANGED
|
@@ -490,7 +490,7 @@ class NotionHelper:
|
|
|
490
490
|
headers = {
|
|
491
491
|
"Authorization": f"Bearer {self.notion_token}",
|
|
492
492
|
"Content-Type": "application/json",
|
|
493
|
-
"Notion-Version": "
|
|
493
|
+
"Notion-Version": "2025-09-03",
|
|
494
494
|
}
|
|
495
495
|
response = requests.post(create_upload_url, headers=headers, json={})
|
|
496
496
|
response.raise_for_status()
|
|
@@ -501,7 +501,7 @@ class NotionHelper:
|
|
|
501
501
|
with open(file_path, "rb") as f:
|
|
502
502
|
upload_headers = {
|
|
503
503
|
"Authorization": f"Bearer {self.notion_token}",
|
|
504
|
-
"Notion-Version": "
|
|
504
|
+
"Notion-Version": "2025-09-03",
|
|
505
505
|
}
|
|
506
506
|
files = {'file': (os.path.basename(file_path), f, mimetypes.guess_type(file_path)[0] or 'application/octet-stream')}
|
|
507
507
|
upload_response = requests.post(upload_url, headers=upload_headers, files=files)
|
|
@@ -519,7 +519,7 @@ class NotionHelper:
|
|
|
519
519
|
headers = {
|
|
520
520
|
"Authorization": f"Bearer {self.notion_token}",
|
|
521
521
|
"Content-Type": "application/json",
|
|
522
|
-
"Notion-Version": "
|
|
522
|
+
"Notion-Version": "2025-09-03",
|
|
523
523
|
}
|
|
524
524
|
data = {
|
|
525
525
|
"children": [
|
|
@@ -543,7 +543,7 @@ class NotionHelper:
|
|
|
543
543
|
headers = {
|
|
544
544
|
"Authorization": f"Bearer {self.notion_token}",
|
|
545
545
|
"Content-Type": "application/json",
|
|
546
|
-
"Notion-Version": "
|
|
546
|
+
"Notion-Version": "2025-09-03",
|
|
547
547
|
}
|
|
548
548
|
data = {
|
|
549
549
|
"children": [
|
|
@@ -569,7 +569,7 @@ class NotionHelper:
|
|
|
569
569
|
headers = {
|
|
570
570
|
"Authorization": f"Bearer {self.notion_token}",
|
|
571
571
|
"Content-Type": "application/json",
|
|
572
|
-
"Notion-Version": "
|
|
572
|
+
"Notion-Version": "2025-09-03",
|
|
573
573
|
}
|
|
574
574
|
data = {
|
|
575
575
|
"properties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: notionhelper
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: NotionHelper is a Python library that simplifies interactions with the Notion API, enabling easy management of databases, pages, and files within Notion workspaces.
|
|
5
5
|
Author-email: Jan du Plessis <drjanduplessis@icloud.com>
|
|
6
6
|
Requires-Python: >=3.10
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
notionhelper/__init__.py,sha256=_ShvAiiI4rspEoAjP71AHLPL1wrmcIlDBn0YUSqSMi8,61
|
|
2
|
+
notionhelper/helper.py,sha256=WwiyRk3rvrcUg9w0HMIXHm5AKQBwh6yhlVx6wueiv_o,27181
|
|
3
|
+
notionhelper/helper1.8.py,sha256=ubR55j97JDduxVipe3yBqHMWfVO9EKhe48ZWCPOq938,23456
|
|
4
|
+
notionhelper-0.2.3.dist-info/METADATA,sha256=tizGtzPAzxQIcsJx5K6eUzamHsWh1QF8wMaEXa3_lnI,13892
|
|
5
|
+
notionhelper-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
+
notionhelper-0.2.3.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
notionhelper/__init__.py,sha256=_ShvAiiI4rspEoAjP71AHLPL1wrmcIlDBn0YUSqSMi8,61
|
|
2
|
-
notionhelper/helper.py,sha256=M-ToIiJeEcQx5xeGGDdzbJhxKC6wlRL0aqqTOUi0l7s,27181
|
|
3
|
-
notionhelper/helper1.8.py,sha256=ubR55j97JDduxVipe3yBqHMWfVO9EKhe48ZWCPOq938,23456
|
|
4
|
-
notionhelper-0.2.2.dist-info/METADATA,sha256=y24SLZiREJlVdpBrB9l97Le7bE1mavOu1_a9K3axuIA,13892
|
|
5
|
-
notionhelper-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
6
|
-
notionhelper-0.2.2.dist-info/RECORD,,
|
|
File without changes
|