webflow / js-webflow-api

Node.js SDK for the Webflow Data API
https://www.npmjs.com/package/webflow-api
291 stars 94 forks source link

Cannot Provide Pagination Parameters to .listSubmissions() #155

Closed tkcranny closed 2 weeks ago

tkcranny commented 1 month ago
const webflow = new WebflowClient({ accessToken: ... });

await webflow.forms.listSubmissions(formId); // Cannot paginate

Pretty much this. The API returns Pagination data, but there are no parameters provided to control which page is desired. This is presumably a limitation of the RESTful API and this generated SDK both.

zplata commented 1 month ago

Thanks @tkcranny - we've identified the issue and will get this resolved in the next SDK release (and the API playground in our data docs should reflect this shortly)

zplata commented 2 weeks ago

Hey @tkcranny - this should be addressed in v2.3.6, and you can now pass in the pagination options (i.e. offset, limit): https://github.com/webflow/js-webflow-api/releases/tag/v2.3.6

Feel free to open a new issue if you still have troubles here, thanks!