From 3e2a51fa7c43b828c4bb8a0d0ebbf8164207363b Mon Sep 17 00:00:00 2001 From: Tommy Au <75346987+smarttommyau@users.noreply.github.com> Date: Tue, 26 Dec 2023 03:36:03 +0800 Subject: [PATCH] Support of filter properties on page retrieve (#221) * Support of filter properties on page retrieve Filter properties is supported on page retrieve * Run black --------- Co-authored-by: ramnes --- notion_client/api_endpoints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/notion_client/api_endpoints.py b/notion_client/api_endpoints.py index fdd4ab1..75b6811 100644 --- a/notion_client/api_endpoints.py +++ b/notion_client/api_endpoints.py @@ -218,7 +218,10 @@ def retrieve(self, page_id: str, **kwargs: Any) -> SyncAsync[Any]: *[🔗 Endpoint documentation](https://developers.notion.com/reference/retrieve-a-page)* """ # noqa: E501 return self.parent.request( - path=f"pages/{page_id}", method="GET", auth=kwargs.get("auth") + path=f"pages/{page_id}", + method="GET", + query=pick(kwargs, "filter_properties"), + auth=kwargs.get("auth"), ) def update(self, page_id: str, **kwargs: Any) -> SyncAsync[Any]: