mariosimao / notion-sdk-php

A complete Notion SDK for PHP developers.
https://mariosimao.github.io/notion-sdk-php/
MIT License
156 stars 24 forks source link

[BUG] Users\Client->findAll does not paginate #396

Open utdrmac opened 4 days ago

utdrmac commented 4 days ago

Describe the bug Using findAll() to retrieve all users only returns the first 100 users. Notion API docs indicate you must paginate using the 'next_cursor' after checking 'has_more' in the result. There is no option to provide this information to the function either.

To Reproduce Steps to reproduce the behavior:

  1. Use Users\Client->findAll()
  2. Observe the returning array is only 100 elements

Expected behavior Either A) findAll() should paginate automatically, and return the entire list of users, or B) provide some way to pass the cursor so the next call fetches the next page.