Skip to content

Commit

Permalink
Support of filter properties on page retrieve (#221)
Browse files Browse the repository at this point in the history
* Support of filter properties on page retrieve

Filter properties is supported on page retrieve

* Run black

---------

Co-authored-by: ramnes <[email protected]>
  • Loading branch information
smarttommyau and ramnes authored Dec 25, 2023
1 parent bc03f56 commit 3e2a51f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notion_client/api_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 3e2a51f

Please sign in to comment.