-
Notifications
You must be signed in to change notification settings - Fork 56
Support notion version 2025-09-03 #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…and response models - Add unit and integration tests
… time, unique id, and verification status
…rialization/deserialization tests
…n up SearchClientTest assertions
…ate related classes
…ducing new request models for page and database parents
… and DatabaseParentRequest classes
…asses accordingly
…pdating related models and interfaces
|
Curious why remove QueryAsync? Thats one of the things I use, or was a better way of handling it added? Also note you can mark outdated code as /// <summary>
/// This will create and set up the Id Lists for the passed in databaseId.
/// </summary>
/// <param name="client">The Notion Client.</param>
/// <param name="databaseId">The notion database ID in which will be checked through.</param>
/// This code is provided by Creator/Chaosyr/SaxbyMod/The Stoat Lord.
public static async Task SetupIdLists(NotionClient client, string databaseId)
{
List<string> pageIds = new List<string>();
string? nextCursor = null;
do
{
var queryParams = new DatabasesQueryParameters
{
StartCursor = nextCursor,
PageSize = 100
};
var response = await RetryWithBackoffClass.RetryWithBackoff(() => client.Databases.QueryAsync(databaseId, queryParams));
Logging.Log("SetupIdLists", "Info", $"Received {response.Results.Count} results for database {databaseId}");
pageIds.AddRange(response.Results.Select(page => page.Id));
nextCursor = response.HasMore ? response.NextCursor : null;
} while (!string.IsNullOrEmpty(nextCursor));
StartingPoint.IdLists.Add($"Key_{databaseId}", pageIds); |
@Chaosyr That API is deprecated as of notion version For your case you can instead use the Query API on |
Description
WIP
Fixes #486
Type of change
Please delete options that are not relevant.
Checklist: