Skip to content

Commit

Permalink
fix get spaces method
Browse files Browse the repository at this point in the history
  • Loading branch information
vaayne committed Mar 13, 2023
1 parent 148fdcd commit 734b331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion notionai/notionai.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def _request(self, content: dict) -> str:
self.url, json=payload, headers=headers, stream=self.stream
)

def _build_headers(self, token: str):
@classmethod
def _build_headers(cls, token: str):
cookies = [
"token_v2=" + token,
]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "notionai-py"
description = "Unoffical Notion AI API"
version="0.1.1"
version="0.1.2"
authors = [
{ name="Vaayne", email="liu.vaayne@gmail.com" },
]
Expand Down

0 comments on commit 734b331

Please sign in to comment.