Skip to content

Commit

Permalink
Client.databases.list() is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Dec 4, 2021
1 parent c1f269d commit 0dbde96
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion notion_client/api_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,15 @@ def delete(self, block_id: str, **kwargs: Any) -> SyncAsync[Any]:

class DatabasesEndpoint(Endpoint):
def list(self, **kwargs: Any) -> SyncAsync[Any]:
"""List all Databases shared with the authenticated integration."""
"""List all Databases shared with the authenticated integration.
> ⚠️ **Search pages for more details**
>
> This endpoint is no longer recommended, use search instead. This endpoint will
> only return explicitly shared pages, while search will also return child pages
> within explicitly shared pages. This endpoint's results cannot be filtered,
> while search can be used to match on page title.
"""
return self.parent.request(
path="databases",
method="GET",
Expand Down

0 comments on commit 0dbde96

Please sign in to comment.