Skip to content

Fix #69/#61: add next_page_token to Paging for cursor-based pagination#74

Open
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
ZLeventer:fix/cursor-pagination
Open

Fix #69/#61: add next_page_token to Paging for cursor-based pagination#74
ZLeventer wants to merge 1 commit intolinkedin-developers:mainfrom
ZLeventer:fix/cursor-pagination

Conversation

@ZLeventer
Copy link
Copy Markdown

Fixes #69 and #61 — versioned APIs (202404+) return nextPageToken in the paging object. Added next_page_token: Optional[str] to Paging, populated from paging.get('nextPageToken'). Also fixes metadata extraction bug (getattr on a dict always returns None; use dict.get instead). Tests updated, 51/51 pass.

…n to Paging for cursor-based pagination

Versioned APIs (202404+) return a nextPageToken cursor in the paging
object instead of start/count/total. Also fixes metadata extraction
using dict.get() instead of getattr() on a plain dict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pagination is broken with current API versions

1 participant