pinterest / pinterest-python-sdk

An SDK that makes it quick and easy to build applications with Pinterest API.
Apache License 2.0
43 stars 28 forks source link

Bug Fix: Logic for getting all pages in `_list()` method of `BaseModel` #85

Closed rushabhvaria closed 1 year ago

rushabhvaria commented 1 year ago

Calling <entity>.get_all() would return a list of entities and a Bookmark model that returns a new entity_list on each Bookmark.get_next() call which performs API calls only when necessary to fetch a new set, and eventually returns all entities for the parent.