notion-sdk-net
notion-sdk-net copied to clipboard
Deprecated API: client.Databases.RetrieveAsync
Describe the bug API was deprecated
To Reproduce
var notionClient = NotionClientFactory.Create(new ClientOptions
{
AuthToken = "accessToken"
}
var database = await notionClient.Databases.RetrieveAsync("");
Expected behavior Getting information about the database.
@matkoch would you like to contribute? I would be happy to accept the PR.
Since it's not possible to get all databases from the databases endpoint, and it requires an Id
, I think it makes sense to throw an ArgumentNullException
when databaseId
is not provided.
As an alternative, Notion suggests using the Search API